wrong 0.4.0 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +97 -49
- data/lib/wrong/adapters/minitest.rb +5 -2
- data/lib/wrong/adapters/rspec.rb +36 -15
- data/lib/wrong/assert.rb +1 -33
- data/lib/wrong/chunk.rb +34 -24
- data/lib/wrong/config.rb +42 -7
- data/lib/wrong/failure_message.rb +59 -0
- data/lib/wrong/helpers.rb +13 -12
- data/lib/wrong/message/array_diff.rb +1 -1
- data/lib/wrong/rainbow.rb +9 -4
- data/lib/wrong/sexp_ext.rb +6 -6
- data/lib/wrong/version.rb +1 -1
- data/lib/wrong.rb +14 -3
- data/test/adapters/minitest_test.rb +2 -3
- data/test/adapters/railsapp/app/controllers/application_controller.rb +3 -0
- data/test/adapters/railsapp/app/helpers/application_helper.rb +2 -0
- data/test/adapters/railsapp/autotest/discover.rb +2 -0
- data/test/adapters/railsapp/config/application.rb +42 -0
- data/test/adapters/railsapp/config/boot.rb +13 -0
- data/test/adapters/railsapp/config/environment.rb +5 -0
- data/test/adapters/railsapp/config/environments/development.rb +26 -0
- data/test/adapters/railsapp/config/environments/production.rb +49 -0
- data/test/adapters/railsapp/config/environments/test.rb +35 -0
- data/test/adapters/railsapp/config/initializers/backtrace_silencers.rb +7 -0
- data/test/adapters/railsapp/config/initializers/inflections.rb +10 -0
- data/test/adapters/railsapp/config/initializers/mime_types.rb +5 -0
- data/test/adapters/railsapp/config/initializers/secret_token.rb +7 -0
- data/test/adapters/railsapp/config/initializers/session_store.rb +8 -0
- data/test/adapters/railsapp/config/routes.rb +58 -0
- data/test/adapters/railsapp/db/seeds.rb +7 -0
- data/test/adapters/railsapp/spec/spec_helper.rb +28 -0
- data/test/adapters/railsapp/spec/wrong_spec.rb +8 -0
- data/test/adapters/rspec_rails_test.rb +58 -0
- data/test/adapters/rspec_test.rb +0 -61
- data/test/adapters/test_unit_test.rb +2 -2
- data/test/assert_advanced_test.rb +4 -4
- data/test/chunk_test.rb +14 -0
- data/test/config_test.rb +98 -51
- data/test/failure_message_test.rb +66 -16
- data/test/failures_test.rb +40 -86
- data/test/message/array_diff_test.rb +6 -2
- data/test/string_comparison_test.rb +3 -1
- data/test/test_helper.rb +26 -3
- metadata +190 -215
metadata
CHANGED
@@ -1,148 +1,131 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wrong
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 15
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
version: 0.4.
|
6
|
+
- 0
|
7
|
+
- 4
|
8
|
+
- 5
|
9
|
+
version: 0.4.5
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
|
-
- Steve Conover
|
14
|
-
- Alex Chaffee
|
12
|
+
- Steve Conover
|
13
|
+
- Alex Chaffee
|
15
14
|
autorequire:
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-
|
18
|
+
date: 2010-11-12 00:00:00 -08:00
|
20
19
|
default_executable:
|
21
20
|
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
version_requirements: *id007
|
131
|
-
- !ruby/object:Gem::Dependency
|
132
|
-
name: file-tail
|
133
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
134
|
-
none: false
|
135
|
-
requirements:
|
136
|
-
- - ~>
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
hash: 15
|
139
|
-
segments:
|
140
|
-
- 1
|
141
|
-
- 0
|
142
|
-
version: "1.0"
|
143
|
-
type: :runtime
|
144
|
-
prerelease: false
|
145
|
-
version_requirements: *id008
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: predicated
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 2
|
30
|
+
- 2
|
31
|
+
version: 0.2.2
|
32
|
+
requirement: *id001
|
33
|
+
prerelease: false
|
34
|
+
type: :runtime
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: ruby_parser
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 2
|
43
|
+
- 0
|
44
|
+
- 4
|
45
|
+
version: 2.0.4
|
46
|
+
requirement: *id002
|
47
|
+
prerelease: false
|
48
|
+
type: :runtime
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: ruby2ruby
|
51
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 1
|
57
|
+
- 2
|
58
|
+
version: "1.2"
|
59
|
+
requirement: *id003
|
60
|
+
prerelease: false
|
61
|
+
type: :runtime
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: sexp_processor
|
64
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
segments:
|
69
|
+
- 3
|
70
|
+
- 0
|
71
|
+
version: "3.0"
|
72
|
+
requirement: *id004
|
73
|
+
prerelease: false
|
74
|
+
type: :runtime
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: diff-lcs
|
77
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ~>
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
segments:
|
82
|
+
- 1
|
83
|
+
- 1
|
84
|
+
- 2
|
85
|
+
version: 1.1.2
|
86
|
+
requirement: *id005
|
87
|
+
prerelease: false
|
88
|
+
type: :runtime
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: ParseTree
|
91
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ~>
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
segments:
|
96
|
+
- 3
|
97
|
+
- 0
|
98
|
+
version: "3.0"
|
99
|
+
requirement: *id006
|
100
|
+
prerelease: false
|
101
|
+
type: :runtime
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: sourcify
|
104
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
segments:
|
109
|
+
- 0
|
110
|
+
- 3
|
111
|
+
- 0
|
112
|
+
version: 0.3.0
|
113
|
+
requirement: *id007
|
114
|
+
prerelease: false
|
115
|
+
type: :runtime
|
116
|
+
- !ruby/object:Gem::Dependency
|
117
|
+
name: file-tail
|
118
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ~>
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
segments:
|
123
|
+
- 1
|
124
|
+
- 0
|
125
|
+
version: "1.0"
|
126
|
+
requirement: *id008
|
127
|
+
prerelease: false
|
128
|
+
type: :runtime
|
146
129
|
description: |-
|
147
130
|
Wrong provides a general assert method that takes a predicate block. Assertion failure
|
148
131
|
messages are rich in detail. The Wrong idea is to replace all those countless assert_this,
|
@@ -156,51 +139,28 @@ executables: []
|
|
156
139
|
extensions: []
|
157
140
|
|
158
141
|
extra_rdoc_files:
|
159
|
-
- README.markdown
|
142
|
+
- README.markdown
|
160
143
|
files:
|
161
|
-
- lib/wrong
|
162
|
-
- lib/wrong/
|
163
|
-
- lib/wrong/
|
164
|
-
- lib/wrong/
|
165
|
-
- lib/wrong/
|
166
|
-
- lib/wrong/
|
167
|
-
- lib/wrong/
|
168
|
-
- lib/wrong/
|
169
|
-
- lib/wrong/
|
170
|
-
- lib/wrong/
|
171
|
-
- lib/wrong/
|
172
|
-
- lib/wrong/
|
173
|
-
- lib/wrong/
|
174
|
-
- lib/wrong/
|
175
|
-
- lib/wrong/
|
176
|
-
- lib/wrong/
|
177
|
-
- lib/wrong/
|
178
|
-
- lib/wrong/
|
179
|
-
- lib/wrong.rb
|
180
|
-
- README.markdown
|
181
|
-
- test/adapters/minitest_test.rb
|
182
|
-
- test/adapters/rspec1/failing_spec.rb
|
183
|
-
- test/adapters/rspec2/failing_spec.rb
|
184
|
-
- test/adapters/rspec_test.rb
|
185
|
-
- test/adapters/test_unit_test.rb
|
186
|
-
- test/assert_advanced_test.rb
|
187
|
-
- test/assert_test.rb
|
188
|
-
- test/capturing_test.rb
|
189
|
-
- test/chunk_test.rb
|
190
|
-
- test/close_to_test.rb
|
191
|
-
- test/config_test.rb
|
192
|
-
- test/d_test.rb
|
193
|
-
- test/failure_message_test.rb
|
194
|
-
- test/failures_test.rb
|
195
|
-
- test/message/array_diff_test.rb
|
196
|
-
- test/message/test_context_test.rb
|
197
|
-
- test/rescuing_test.rb
|
198
|
-
- test/separate.rb
|
199
|
-
- test/sexp_ext_test.rb
|
200
|
-
- test/string_comparison_test.rb
|
201
|
-
- test/suite.rb
|
202
|
-
- test/test_helper.rb
|
203
|
-
- test/wrong_test.rb
|
144
|
+
- lib/wrong.rb
|
145
|
+
- lib/wrong/assert.rb
|
146
|
+
- lib/wrong/chunk.rb
|
147
|
+
- lib/wrong/close_to.rb
|
148
|
+
- lib/wrong/config.rb
|
149
|
+
- lib/wrong/d.rb
|
150
|
+
- lib/wrong/failure_message.rb
|
151
|
+
- lib/wrong/helpers.rb
|
152
|
+
- lib/wrong/irb.rb
|
153
|
+
- lib/wrong/rainbow.rb
|
154
|
+
- lib/wrong/ruby2ruby_patch.rb
|
155
|
+
- lib/wrong/sexp_ext.rb
|
156
|
+
- lib/wrong/version.rb
|
157
|
+
- lib/wrong/adapters/minitest.rb
|
158
|
+
- lib/wrong/adapters/rspec.rb
|
159
|
+
- lib/wrong/adapters/test_unit.rb
|
160
|
+
- lib/wrong/message/array_diff.rb
|
161
|
+
- lib/wrong/message/string_comparison.rb
|
162
|
+
- lib/wrong/message/test_context.rb
|
163
|
+
- README.markdown
|
204
164
|
has_rdoc: true
|
205
165
|
homepage: http://github.com/sconover/wrong
|
206
166
|
licenses: []
|
@@ -209,53 +169,68 @@ post_install_message:
|
|
209
169
|
rdoc_options: []
|
210
170
|
|
211
171
|
require_paths:
|
212
|
-
- lib
|
172
|
+
- lib
|
213
173
|
required_ruby_version: !ruby/object:Gem::Requirement
|
214
|
-
none: false
|
215
174
|
requirements:
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
version: "0"
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
segments:
|
178
|
+
- 0
|
179
|
+
version: "0"
|
222
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
|
-
none: false
|
224
181
|
requirements:
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
version: "0"
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
segments:
|
185
|
+
- 0
|
186
|
+
version: "0"
|
231
187
|
requirements: []
|
232
188
|
|
233
189
|
rubyforge_project: wrong
|
234
|
-
rubygems_version: 1.3.
|
190
|
+
rubygems_version: 1.3.6
|
235
191
|
signing_key:
|
236
192
|
specification_version: 3
|
237
193
|
summary: Wrong provides a general assert method that takes a predicate block. Assertion failure messages are rich in detail.
|
238
194
|
test_files:
|
239
|
-
- test/
|
240
|
-
- test/
|
241
|
-
- test/
|
242
|
-
- test/
|
243
|
-
- test/
|
244
|
-
- test/
|
245
|
-
- test/
|
246
|
-
- test/
|
247
|
-
- test/
|
248
|
-
- test/
|
249
|
-
- test/
|
250
|
-
- test/
|
251
|
-
- test/
|
252
|
-
- test/
|
253
|
-
- test/
|
254
|
-
- test/
|
255
|
-
- test/
|
256
|
-
- test/
|
257
|
-
- test/
|
258
|
-
- test/
|
259
|
-
- test/
|
260
|
-
- test/
|
261
|
-
- test/
|
195
|
+
- test/assert_advanced_test.rb
|
196
|
+
- test/assert_test.rb
|
197
|
+
- test/capturing_test.rb
|
198
|
+
- test/chunk_test.rb
|
199
|
+
- test/close_to_test.rb
|
200
|
+
- test/config_test.rb
|
201
|
+
- test/d_test.rb
|
202
|
+
- test/failure_message_test.rb
|
203
|
+
- test/failures_test.rb
|
204
|
+
- test/rescuing_test.rb
|
205
|
+
- test/separate.rb
|
206
|
+
- test/sexp_ext_test.rb
|
207
|
+
- test/string_comparison_test.rb
|
208
|
+
- test/suite.rb
|
209
|
+
- test/test_helper.rb
|
210
|
+
- test/wrong_test.rb
|
211
|
+
- test/adapters/minitest_test.rb
|
212
|
+
- test/adapters/rspec_rails_test.rb
|
213
|
+
- test/adapters/rspec_test.rb
|
214
|
+
- test/adapters/test_unit_test.rb
|
215
|
+
- test/adapters/railsapp/app/controllers/application_controller.rb
|
216
|
+
- test/adapters/railsapp/app/helpers/application_helper.rb
|
217
|
+
- test/adapters/railsapp/autotest/discover.rb
|
218
|
+
- test/adapters/railsapp/config/application.rb
|
219
|
+
- test/adapters/railsapp/config/boot.rb
|
220
|
+
- test/adapters/railsapp/config/environment.rb
|
221
|
+
- test/adapters/railsapp/config/routes.rb
|
222
|
+
- test/adapters/railsapp/config/environments/development.rb
|
223
|
+
- test/adapters/railsapp/config/environments/production.rb
|
224
|
+
- test/adapters/railsapp/config/environments/test.rb
|
225
|
+
- test/adapters/railsapp/config/initializers/backtrace_silencers.rb
|
226
|
+
- test/adapters/railsapp/config/initializers/inflections.rb
|
227
|
+
- test/adapters/railsapp/config/initializers/mime_types.rb
|
228
|
+
- test/adapters/railsapp/config/initializers/secret_token.rb
|
229
|
+
- test/adapters/railsapp/config/initializers/session_store.rb
|
230
|
+
- test/adapters/railsapp/db/seeds.rb
|
231
|
+
- test/adapters/railsapp/spec/spec_helper.rb
|
232
|
+
- test/adapters/railsapp/spec/wrong_spec.rb
|
233
|
+
- test/adapters/rspec1/failing_spec.rb
|
234
|
+
- test/adapters/rspec2/failing_spec.rb
|
235
|
+
- test/message/array_diff_test.rb
|
236
|
+
- test/message/test_context_test.rb
|