wrong 0.4.0 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/README.markdown +97 -49
  2. data/lib/wrong/adapters/minitest.rb +5 -2
  3. data/lib/wrong/adapters/rspec.rb +36 -15
  4. data/lib/wrong/assert.rb +1 -33
  5. data/lib/wrong/chunk.rb +34 -24
  6. data/lib/wrong/config.rb +42 -7
  7. data/lib/wrong/failure_message.rb +59 -0
  8. data/lib/wrong/helpers.rb +13 -12
  9. data/lib/wrong/message/array_diff.rb +1 -1
  10. data/lib/wrong/rainbow.rb +9 -4
  11. data/lib/wrong/sexp_ext.rb +6 -6
  12. data/lib/wrong/version.rb +1 -1
  13. data/lib/wrong.rb +14 -3
  14. data/test/adapters/minitest_test.rb +2 -3
  15. data/test/adapters/railsapp/app/controllers/application_controller.rb +3 -0
  16. data/test/adapters/railsapp/app/helpers/application_helper.rb +2 -0
  17. data/test/adapters/railsapp/autotest/discover.rb +2 -0
  18. data/test/adapters/railsapp/config/application.rb +42 -0
  19. data/test/adapters/railsapp/config/boot.rb +13 -0
  20. data/test/adapters/railsapp/config/environment.rb +5 -0
  21. data/test/adapters/railsapp/config/environments/development.rb +26 -0
  22. data/test/adapters/railsapp/config/environments/production.rb +49 -0
  23. data/test/adapters/railsapp/config/environments/test.rb +35 -0
  24. data/test/adapters/railsapp/config/initializers/backtrace_silencers.rb +7 -0
  25. data/test/adapters/railsapp/config/initializers/inflections.rb +10 -0
  26. data/test/adapters/railsapp/config/initializers/mime_types.rb +5 -0
  27. data/test/adapters/railsapp/config/initializers/secret_token.rb +7 -0
  28. data/test/adapters/railsapp/config/initializers/session_store.rb +8 -0
  29. data/test/adapters/railsapp/config/routes.rb +58 -0
  30. data/test/adapters/railsapp/db/seeds.rb +7 -0
  31. data/test/adapters/railsapp/spec/spec_helper.rb +28 -0
  32. data/test/adapters/railsapp/spec/wrong_spec.rb +8 -0
  33. data/test/adapters/rspec_rails_test.rb +58 -0
  34. data/test/adapters/rspec_test.rb +0 -61
  35. data/test/adapters/test_unit_test.rb +2 -2
  36. data/test/assert_advanced_test.rb +4 -4
  37. data/test/chunk_test.rb +14 -0
  38. data/test/config_test.rb +98 -51
  39. data/test/failure_message_test.rb +66 -16
  40. data/test/failures_test.rb +40 -86
  41. data/test/message/array_diff_test.rb +6 -2
  42. data/test/string_comparison_test.rb +3 -1
  43. data/test/test_helper.rb +26 -3
  44. 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
- - 0
8
- - 4
9
- - 0
10
- version: 0.4.0
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-10-04 00:00:00 -07:00
18
+ date: 2010-11-12 00:00:00 -08:00
20
19
  default_executable:
21
20
  dependencies:
22
- - !ruby/object:Gem::Dependency
23
- name: predicated
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 19
30
- segments:
31
- - 0
32
- - 2
33
- - 2
34
- version: 0.2.2
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: *id001
38
- - !ruby/object:Gem::Dependency
39
- name: ruby_parser
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 7
46
- segments:
47
- - 2
48
- - 0
49
- - 4
50
- version: 2.0.4
51
- type: :runtime
52
- prerelease: false
53
- version_requirements: *id002
54
- - !ruby/object:Gem::Dependency
55
- name: ruby2ruby
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 11
62
- segments:
63
- - 1
64
- - 2
65
- version: "1.2"
66
- type: :runtime
67
- prerelease: false
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: sexp_processor
71
- requirement: &id004 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ~>
75
- - !ruby/object:Gem::Version
76
- hash: 7
77
- segments:
78
- - 3
79
- - 0
80
- version: "3.0"
81
- type: :runtime
82
- prerelease: false
83
- version_requirements: *id004
84
- - !ruby/object:Gem::Dependency
85
- name: diff-lcs
86
- requirement: &id005 !ruby/object:Gem::Requirement
87
- none: false
88
- requirements:
89
- - - ~>
90
- - !ruby/object:Gem::Version
91
- hash: 23
92
- segments:
93
- - 1
94
- - 1
95
- - 2
96
- version: 1.1.2
97
- type: :runtime
98
- prerelease: false
99
- version_requirements: *id005
100
- - !ruby/object:Gem::Dependency
101
- name: ParseTree
102
- requirement: &id006 !ruby/object:Gem::Requirement
103
- none: false
104
- requirements:
105
- - - ~>
106
- - !ruby/object:Gem::Version
107
- hash: 7
108
- segments:
109
- - 3
110
- - 0
111
- version: "3.0"
112
- type: :runtime
113
- prerelease: false
114
- version_requirements: *id006
115
- - !ruby/object:Gem::Dependency
116
- name: sourcify
117
- requirement: &id007 !ruby/object:Gem::Requirement
118
- none: false
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- hash: 19
123
- segments:
124
- - 0
125
- - 3
126
- - 0
127
- version: 0.3.0
128
- type: :runtime
129
- prerelease: false
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/adapters/minitest.rb
162
- - lib/wrong/adapters/rspec.rb
163
- - lib/wrong/adapters/test_unit.rb
164
- - lib/wrong/assert.rb
165
- - lib/wrong/chunk.rb
166
- - lib/wrong/close_to.rb
167
- - lib/wrong/config.rb
168
- - lib/wrong/d.rb
169
- - lib/wrong/failure_message.rb
170
- - lib/wrong/helpers.rb
171
- - lib/wrong/irb.rb
172
- - lib/wrong/message/array_diff.rb
173
- - lib/wrong/message/string_comparison.rb
174
- - lib/wrong/message/test_context.rb
175
- - lib/wrong/rainbow.rb
176
- - lib/wrong/ruby2ruby_patch.rb
177
- - lib/wrong/sexp_ext.rb
178
- - lib/wrong/version.rb
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
- - !ruby/object:Gem::Version
218
- hash: 3
219
- segments:
220
- - 0
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
- - !ruby/object:Gem::Version
227
- hash: 3
228
- segments:
229
- - 0
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.7
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/adapters/minitest_test.rb
240
- - test/adapters/rspec1/failing_spec.rb
241
- - test/adapters/rspec2/failing_spec.rb
242
- - test/adapters/rspec_test.rb
243
- - test/adapters/test_unit_test.rb
244
- - test/assert_advanced_test.rb
245
- - test/assert_test.rb
246
- - test/capturing_test.rb
247
- - test/chunk_test.rb
248
- - test/close_to_test.rb
249
- - test/config_test.rb
250
- - test/d_test.rb
251
- - test/failure_message_test.rb
252
- - test/failures_test.rb
253
- - test/message/array_diff_test.rb
254
- - test/message/test_context_test.rb
255
- - test/rescuing_test.rb
256
- - test/separate.rb
257
- - test/sexp_ext_test.rb
258
- - test/string_comparison_test.rb
259
- - test/suite.rb
260
- - test/test_helper.rb
261
- - test/wrong_test.rb
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