wrong 0.4.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +300 -0
- data/lib/wrong.rb +27 -0
- data/lib/wrong/adapters/minitest.rb +14 -0
- data/lib/wrong/adapters/rspec.rb +21 -0
- data/lib/wrong/adapters/test_unit.rb +9 -0
- data/lib/wrong/assert.rb +105 -0
- data/lib/wrong/chunk.rb +233 -0
- data/lib/wrong/close_to.rb +9 -0
- data/lib/wrong/config.rb +29 -0
- data/lib/wrong/d.rb +42 -0
- data/lib/wrong/failure_message.rb +43 -0
- data/lib/wrong/helpers.rb +66 -0
- data/lib/wrong/irb.rb +16 -0
- data/lib/wrong/message/array_diff.rb +69 -0
- data/lib/wrong/message/string_comparison.rb +88 -0
- data/lib/wrong/message/test_context.rb +28 -0
- data/lib/wrong/rainbow.rb +127 -0
- data/lib/wrong/ruby2ruby_patch.rb +37 -0
- data/lib/wrong/sexp_ext.rb +49 -0
- data/lib/wrong/version.rb +3 -0
- data/test/adapters/minitest_test.rb +97 -0
- data/test/adapters/rspec1/failing_spec.rb +23 -0
- data/test/adapters/rspec2/failing_spec.rb +26 -0
- data/test/adapters/rspec_test.rb +104 -0
- data/test/adapters/test_unit_test.rb +59 -0
- data/test/assert_advanced_test.rb +51 -0
- data/test/assert_test.rb +76 -0
- data/test/capturing_test.rb +59 -0
- data/test/chunk_test.rb +264 -0
- data/test/close_to_test.rb +39 -0
- data/test/config_test.rb +89 -0
- data/test/d_test.rb +64 -0
- data/test/failure_message_test.rb +40 -0
- data/test/failures_test.rb +157 -0
- data/test/message/array_diff_test.rb +79 -0
- data/test/message/test_context_test.rb +69 -0
- data/test/rescuing_test.rb +17 -0
- data/test/separate.rb +4 -0
- data/test/sexp_ext_test.rb +80 -0
- data/test/string_comparison_test.rb +159 -0
- data/test/suite.rb +7 -0
- data/test/test_helper.rb +64 -0
- data/test/wrong_test.rb +60 -0
- metadata +215 -0
metadata
ADDED
@@ -0,0 +1,215 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wrong
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
11
|
+
platform: java
|
12
|
+
authors:
|
13
|
+
- Steve Conover
|
14
|
+
- Alex Chaffee
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2010-10-04 00:00:00 -07:00
|
20
|
+
default_executable:
|
21
|
+
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
|
+
description: |-
|
101
|
+
Wrong provides a general assert method that takes a predicate block. Assertion failure
|
102
|
+
messages are rich in detail. The Wrong idea is to replace all those countless assert_this,
|
103
|
+
assert_that library methods which only exist to give a more useful failure message than
|
104
|
+
"assertion failed". Wrong replaces all of them in one fell swoop, since if you can write it
|
105
|
+
in Ruby, Wrong can make a sensible failure message out of it. Also provided are several
|
106
|
+
helper methods, like rescuing, capturing, and d.
|
107
|
+
email: sconover@gmail.com
|
108
|
+
executables: []
|
109
|
+
|
110
|
+
extensions: []
|
111
|
+
|
112
|
+
extra_rdoc_files:
|
113
|
+
- README.markdown
|
114
|
+
files:
|
115
|
+
- lib/wrong/adapters/minitest.rb
|
116
|
+
- lib/wrong/adapters/rspec.rb
|
117
|
+
- lib/wrong/adapters/test_unit.rb
|
118
|
+
- lib/wrong/assert.rb
|
119
|
+
- lib/wrong/chunk.rb
|
120
|
+
- lib/wrong/close_to.rb
|
121
|
+
- lib/wrong/config.rb
|
122
|
+
- lib/wrong/d.rb
|
123
|
+
- lib/wrong/failure_message.rb
|
124
|
+
- lib/wrong/helpers.rb
|
125
|
+
- lib/wrong/irb.rb
|
126
|
+
- lib/wrong/message/array_diff.rb
|
127
|
+
- lib/wrong/message/string_comparison.rb
|
128
|
+
- lib/wrong/message/test_context.rb
|
129
|
+
- lib/wrong/rainbow.rb
|
130
|
+
- lib/wrong/ruby2ruby_patch.rb
|
131
|
+
- lib/wrong/sexp_ext.rb
|
132
|
+
- lib/wrong/version.rb
|
133
|
+
- lib/wrong.rb
|
134
|
+
- README.markdown
|
135
|
+
- test/adapters/minitest_test.rb
|
136
|
+
- test/adapters/rspec1/failing_spec.rb
|
137
|
+
- test/adapters/rspec2/failing_spec.rb
|
138
|
+
- test/adapters/rspec_test.rb
|
139
|
+
- test/adapters/test_unit_test.rb
|
140
|
+
- test/assert_advanced_test.rb
|
141
|
+
- test/assert_test.rb
|
142
|
+
- test/capturing_test.rb
|
143
|
+
- test/chunk_test.rb
|
144
|
+
- test/close_to_test.rb
|
145
|
+
- test/config_test.rb
|
146
|
+
- test/d_test.rb
|
147
|
+
- test/failure_message_test.rb
|
148
|
+
- test/failures_test.rb
|
149
|
+
- test/message/array_diff_test.rb
|
150
|
+
- test/message/test_context_test.rb
|
151
|
+
- test/rescuing_test.rb
|
152
|
+
- test/separate.rb
|
153
|
+
- test/sexp_ext_test.rb
|
154
|
+
- test/string_comparison_test.rb
|
155
|
+
- test/suite.rb
|
156
|
+
- test/test_helper.rb
|
157
|
+
- test/wrong_test.rb
|
158
|
+
has_rdoc: true
|
159
|
+
homepage: http://github.com/sconover/wrong
|
160
|
+
licenses: []
|
161
|
+
|
162
|
+
post_install_message:
|
163
|
+
rdoc_options: []
|
164
|
+
|
165
|
+
require_paths:
|
166
|
+
- lib
|
167
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
168
|
+
none: false
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
hash: 3
|
173
|
+
segments:
|
174
|
+
- 0
|
175
|
+
version: "0"
|
176
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
hash: 3
|
182
|
+
segments:
|
183
|
+
- 0
|
184
|
+
version: "0"
|
185
|
+
requirements: []
|
186
|
+
|
187
|
+
rubyforge_project: wrong
|
188
|
+
rubygems_version: 1.3.7
|
189
|
+
signing_key:
|
190
|
+
specification_version: 3
|
191
|
+
summary: Wrong provides a general assert method that takes a predicate block. Assertion failure messages are rich in detail.
|
192
|
+
test_files:
|
193
|
+
- test/adapters/minitest_test.rb
|
194
|
+
- test/adapters/rspec1/failing_spec.rb
|
195
|
+
- test/adapters/rspec2/failing_spec.rb
|
196
|
+
- test/adapters/rspec_test.rb
|
197
|
+
- test/adapters/test_unit_test.rb
|
198
|
+
- test/assert_advanced_test.rb
|
199
|
+
- test/assert_test.rb
|
200
|
+
- test/capturing_test.rb
|
201
|
+
- test/chunk_test.rb
|
202
|
+
- test/close_to_test.rb
|
203
|
+
- test/config_test.rb
|
204
|
+
- test/d_test.rb
|
205
|
+
- test/failure_message_test.rb
|
206
|
+
- test/failures_test.rb
|
207
|
+
- test/message/array_diff_test.rb
|
208
|
+
- test/message/test_context_test.rb
|
209
|
+
- test/rescuing_test.rb
|
210
|
+
- test/separate.rb
|
211
|
+
- test/sexp_ext_test.rb
|
212
|
+
- test/string_comparison_test.rb
|
213
|
+
- test/suite.rb
|
214
|
+
- test/test_helper.rb
|
215
|
+
- test/wrong_test.rb
|