wrong 0.4.4-java → 0.4.5-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/wrong/assert.rb +1 -1
- data/lib/wrong/chunk.rb +9 -4
- data/lib/wrong/failure_message.rb +18 -13
- data/lib/wrong/version.rb +1 -1
- data/test/chunk_test.rb +14 -0
- data/test/failure_message_test.rb +35 -30
- data/test/failures_test.rb +0 -1
- data/test/message/array_diff_test.rb +1 -2
- data/test/string_comparison_test.rb +3 -1
- metadata +149 -199
data/lib/wrong/assert.rb
CHANGED
@@ -64,7 +64,7 @@ module Wrong
|
|
64
64
|
|
65
65
|
chunk = Wrong::Chunk.from_block(block, depth + 2)
|
66
66
|
|
67
|
-
message = FailureMessage.new(chunk,
|
67
|
+
message = FailureMessage.new(chunk, valence, explanation).full
|
68
68
|
raise failure_class.new(message)
|
69
69
|
end
|
70
70
|
end
|
data/lib/wrong/chunk.rb
CHANGED
@@ -26,16 +26,20 @@ module Wrong
|
|
26
26
|
as_proc.source_location
|
27
27
|
else
|
28
28
|
# in Ruby 1.8, it reads the source location from the call stack
|
29
|
-
|
29
|
+
# # $stderr.puts "---"
|
30
|
+
# $stderr.puts caller.join("\n")
|
31
|
+
relevant_caller = caller[depth]
|
32
|
+
# $stderr.puts "*** #{relevant_caller}"
|
33
|
+
relevant_caller.split(":")
|
30
34
|
end
|
31
35
|
|
32
|
-
new(file, line, block)
|
36
|
+
new(file, line, &block)
|
33
37
|
end
|
34
38
|
|
35
39
|
attr_reader :file, :line_number, :block
|
36
40
|
|
37
41
|
# line parameter is 1-based
|
38
|
-
def initialize(file, line_number, block
|
42
|
+
def initialize(file, line_number, &block)
|
39
43
|
@file = file
|
40
44
|
@line_number = line_number.to_i
|
41
45
|
@block = block
|
@@ -143,7 +147,7 @@ module Wrong
|
|
143
147
|
# todo: extract some of this into Sexp
|
144
148
|
parts_list = []
|
145
149
|
begin
|
146
|
-
unless
|
150
|
+
unless [:arglist, :lasgn, :iter].include? sexp.first
|
147
151
|
code = sexp.to_ruby.strip
|
148
152
|
parts_list << code unless code == "" || parts_list.include?(code)
|
149
153
|
end
|
@@ -221,6 +225,7 @@ module Wrong
|
|
221
225
|
|
222
226
|
end
|
223
227
|
|
228
|
+
public # don't know exactly why this needs to be public but eval'ed code can't find it otherwise
|
224
229
|
def indent(indent, *s)
|
225
230
|
"#{" " * indent}#{s.join('')}"
|
226
231
|
end
|
@@ -41,14 +41,14 @@ module Wrong
|
|
41
41
|
end
|
42
42
|
|
43
43
|
|
44
|
-
attr_accessor :chunk, :
|
44
|
+
attr_accessor :chunk, :valence, :explanation
|
45
45
|
|
46
|
-
def initialize(chunk,
|
47
|
-
@chunk, @
|
46
|
+
def initialize(chunk, valence, explanation)
|
47
|
+
@chunk, @valence, @explanation = chunk, valence, explanation
|
48
48
|
end
|
49
49
|
|
50
50
|
def basic
|
51
|
-
"#{valence == :deny ? "Didn't expect" : "Expected"} #{chunk.code}"
|
51
|
+
"#{valence == :deny ? "Didn't expect" : "Expected"} #{colored(:blue, chunk.code)}"
|
52
52
|
end
|
53
53
|
|
54
54
|
def full
|
@@ -58,9 +58,7 @@ module Wrong
|
|
58
58
|
|
59
59
|
formatted_message = if predicate && !(predicate.is_a? Predicated::Conjunction)
|
60
60
|
if formatter = FailureMessage.formatter_for(predicate)
|
61
|
-
|
62
|
-
failure = failure.bold if Wrong.config[:color]
|
63
|
-
failure
|
61
|
+
colored(:bold, formatter.describe)
|
64
62
|
end
|
65
63
|
end
|
66
64
|
|
@@ -75,16 +73,12 @@ module Wrong
|
|
75
73
|
|
76
74
|
protected
|
77
75
|
def code
|
78
|
-
@code ||=
|
79
|
-
code = chunk.code
|
80
|
-
code = code.color(:blue) if Wrong.config[:color]
|
81
|
-
code
|
82
|
-
end
|
76
|
+
@code ||= chunk.code
|
83
77
|
end
|
84
78
|
|
85
79
|
def predicate
|
86
80
|
@predicate ||= begin
|
87
|
-
Predicated::Predicate.from_ruby_code_string(code, block.binding)
|
81
|
+
Predicated::Predicate.from_ruby_code_string(code, chunk.block.binding)
|
88
82
|
rescue Predicated::Predicate::DontKnowWhatToDoWithThisSexpError, Exception => e
|
89
83
|
# save it off for debugging
|
90
84
|
@@last_predicated_error = e
|
@@ -92,6 +86,17 @@ module Wrong
|
|
92
86
|
end
|
93
87
|
end
|
94
88
|
|
89
|
+
def colored(color, text)
|
90
|
+
if Wrong.config[:color]
|
91
|
+
if color == :bold
|
92
|
+
text.bold
|
93
|
+
else
|
94
|
+
text.color(color)
|
95
|
+
end
|
96
|
+
else
|
97
|
+
text
|
98
|
+
end
|
99
|
+
end
|
95
100
|
|
96
101
|
end
|
97
102
|
end
|
data/lib/wrong/version.rb
CHANGED
data/test/chunk_test.rb
CHANGED
@@ -175,6 +175,13 @@ z
|
|
175
175
|
code_parts = chunk.parts
|
176
176
|
assert !code_parts.include?("rescuing")
|
177
177
|
end
|
178
|
+
|
179
|
+
it "skips assignments" do
|
180
|
+
chunk = Chunk.new(__FILE__, __LINE__ + 1); <<-CODE
|
181
|
+
x = 7; x
|
182
|
+
CODE
|
183
|
+
assert !chunk.parts.include?("(x = 7)")
|
184
|
+
end
|
178
185
|
end
|
179
186
|
|
180
187
|
describe "#details" do
|
@@ -247,6 +254,13 @@ z
|
|
247
254
|
# this means it's a literal slash plus t inside double quotes -- i.e. it shows the escaped (inspected) string
|
248
255
|
assert d == "\n" + ' x is "flavor:\tvanilla"' + "\n"
|
249
256
|
end
|
257
|
+
|
258
|
+
it "skips assignments" do
|
259
|
+
y = 14
|
260
|
+
d = details { x = 7; y }
|
261
|
+
assert d !~ /x = 7/
|
262
|
+
assert d =~ /y is 14/
|
263
|
+
end
|
250
264
|
|
251
265
|
it "indents unescaped newlines inside the inspected value" do
|
252
266
|
weirdo = Object.new
|
@@ -2,22 +2,22 @@ require "./test/test_helper"
|
|
2
2
|
require "wrong/assert"
|
3
3
|
require "wrong/failure_message"
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
def match?
|
9
|
-
predicate.is_a? BogusPredicate
|
10
|
-
end
|
11
|
-
|
12
|
-
def describe
|
13
|
-
"bogus #{predicate.object_id}"
|
14
|
-
end
|
5
|
+
class BogusFormatter < Wrong::FailureMessage::Formatter
|
6
|
+
def match?
|
7
|
+
predicate.is_a? BogusPredicate
|
15
8
|
end
|
16
9
|
|
17
|
-
|
10
|
+
def describe
|
11
|
+
"bogus #{predicate.object_id}"
|
18
12
|
end
|
13
|
+
end
|
14
|
+
|
15
|
+
class BogusPredicate < Predicated::Predicate
|
16
|
+
end
|
17
|
+
|
18
|
+
module Wrong
|
19
19
|
|
20
|
-
describe FailureMessage::Formatter do
|
20
|
+
describe Wrong::FailureMessage::Formatter do
|
21
21
|
include Wrong::Assert
|
22
22
|
|
23
23
|
it "describes a predicate" do
|
@@ -27,23 +27,28 @@ module Wrong
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
describe FailureMessage do
|
30
|
+
describe Wrong::FailureMessage do
|
31
31
|
include Wrong::Assert
|
32
32
|
|
33
33
|
it "can register a formatter class for a predicate pattern" do
|
34
|
-
FailureMessage.register_formatter(BogusFormatter)
|
35
|
-
assert { FailureMessage.formatter_for(BogusPredicate.new).is_a? BogusFormatter }
|
36
|
-
assert { FailureMessage.formatters.include?(BogusFormatter)}
|
34
|
+
Wrong::FailureMessage.register_formatter(::BogusFormatter)
|
35
|
+
assert { Wrong::FailureMessage.formatter_for(::BogusPredicate.new).is_a? ::BogusFormatter }
|
36
|
+
assert { Wrong::FailureMessage.formatters.include?(::BogusFormatter)}
|
37
37
|
end
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
before do
|
40
|
+
@chunk = Wrong::Chunk.new(__FILE__, __LINE__ + 1) do
|
41
|
+
2 + 2 == 5
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def message(options = {}, &block)
|
42
46
|
valence = options[:valence] || :assert
|
43
47
|
explanation = options[:explanation]
|
44
|
-
FailureMessage.new(chunk,
|
48
|
+
Wrong::FailureMessage.new(@chunk, valence, explanation)
|
45
49
|
end
|
46
50
|
|
51
|
+
|
47
52
|
describe "#basic" do
|
48
53
|
it "shows the code" do
|
49
54
|
assert { message.basic == "Expected ((2 + 2) == 5)" }
|
@@ -65,18 +70,18 @@ module Wrong
|
|
65
70
|
end
|
66
71
|
|
67
72
|
it "doesn't say 'but' if there are no details" do
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
deny {
|
73
|
+
@chunk = Wrong::Chunk.new(__FILE__, __LINE__ + 1) do
|
74
|
+
2
|
75
|
+
end
|
76
|
+
assert { @chunk.details.empty? }
|
77
|
+
deny { message.full.include? ", but"}
|
73
78
|
end
|
74
79
|
|
75
|
-
it "
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
assert {
|
80
|
+
it "says 'but' if there are details" do
|
81
|
+
@chunk = Wrong::Chunk.new(__FILE__, __LINE__ + 1) do
|
82
|
+
2 + 2 == 5
|
83
|
+
end
|
84
|
+
assert { message.full.include? ", but\n (2 + 2) is 4"}
|
80
85
|
end
|
81
86
|
|
82
87
|
end
|
data/test/failures_test.rb
CHANGED
@@ -2,14 +2,13 @@ require "./test/test_helper"
|
|
2
2
|
require "wrong/assert"
|
3
3
|
require "wrong/helpers"
|
4
4
|
require "wrong/adapters/minitest"
|
5
|
-
|
6
5
|
require "wrong/message/array_diff"
|
7
6
|
|
8
7
|
describe "when you're comparing strings and they don't match, show me the diff message" do
|
9
8
|
|
10
9
|
def assert_string_diff_message(first_array, second_array, expected_error_message)
|
11
10
|
e = rescuing {
|
12
|
-
|
11
|
+
assert { first_array == second_array }
|
13
12
|
}
|
14
13
|
assert {
|
15
14
|
e.message.include?(expected_error_message.strip)
|
@@ -5,6 +5,8 @@ require "wrong/message/string_comparison"
|
|
5
5
|
module Wrong
|
6
6
|
describe StringComparison do
|
7
7
|
|
8
|
+
StringComparison = Wrong::StringComparison # so Ruby 1.9.1 can find it
|
9
|
+
|
8
10
|
before do
|
9
11
|
# crank the window and prelude down for these tests
|
10
12
|
@old_window = StringComparison.window
|
@@ -153,7 +155,7 @@ second: ..."kl*nopqrstuvwxyz"
|
|
153
155
|
error = rescuing do
|
154
156
|
assert { "xyz" == "abc" }
|
155
157
|
end
|
156
|
-
assert { error.message =~ /Strings differ
|
158
|
+
assert { error.message =~ /Strings differ at position 0:/ }
|
157
159
|
end
|
158
160
|
end
|
159
161
|
end
|
metadata
CHANGED
@@ -3,14 +3,14 @@ name: wrong
|
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
version: 0.4.
|
6
|
+
- 0
|
7
|
+
- 4
|
8
|
+
- 5
|
9
|
+
version: 0.4.5
|
10
10
|
platform: java
|
11
11
|
authors:
|
12
|
-
- Steve Conover
|
13
|
-
- Alex Chaffee
|
12
|
+
- Steve Conover
|
13
|
+
- Alex Chaffee
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
@@ -18,79 +18,74 @@ cert_chain: []
|
|
18
18
|
date: 2010-11-12 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
|
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
|
-
- 2
|
90
|
-
version: 1.1.2
|
91
|
-
type: :runtime
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: *id005
|
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
|
94
89
|
description: |-
|
95
90
|
Wrong provides a general assert method that takes a predicate block. Assertion failure
|
96
91
|
messages are rich in detail. The Wrong idea is to replace all those countless assert_this,
|
@@ -104,70 +99,28 @@ executables: []
|
|
104
99
|
extensions: []
|
105
100
|
|
106
101
|
extra_rdoc_files:
|
107
|
-
- README.markdown
|
102
|
+
- README.markdown
|
108
103
|
files:
|
109
|
-
- lib/wrong
|
110
|
-
- lib/wrong/
|
111
|
-
- lib/wrong/
|
112
|
-
- lib/wrong/
|
113
|
-
- lib/wrong/
|
114
|
-
- lib/wrong/
|
115
|
-
- lib/wrong/
|
116
|
-
- lib/wrong/
|
117
|
-
- lib/wrong/
|
118
|
-
- lib/wrong/
|
119
|
-
- lib/wrong/
|
120
|
-
- lib/wrong/
|
121
|
-
- lib/wrong/
|
122
|
-
- lib/wrong/
|
123
|
-
- lib/wrong/
|
124
|
-
- lib/wrong/
|
125
|
-
- lib/wrong/
|
126
|
-
- lib/wrong/
|
127
|
-
- lib/wrong.rb
|
128
|
-
- README.markdown
|
129
|
-
- test/adapters/minitest_test.rb
|
130
|
-
- test/adapters/railsapp/app/controllers/application_controller.rb
|
131
|
-
- test/adapters/railsapp/app/helpers/application_helper.rb
|
132
|
-
- test/adapters/railsapp/autotest/discover.rb
|
133
|
-
- test/adapters/railsapp/config/application.rb
|
134
|
-
- test/adapters/railsapp/config/boot.rb
|
135
|
-
- test/adapters/railsapp/config/environment.rb
|
136
|
-
- test/adapters/railsapp/config/environments/development.rb
|
137
|
-
- test/adapters/railsapp/config/environments/production.rb
|
138
|
-
- test/adapters/railsapp/config/environments/test.rb
|
139
|
-
- test/adapters/railsapp/config/initializers/backtrace_silencers.rb
|
140
|
-
- test/adapters/railsapp/config/initializers/inflections.rb
|
141
|
-
- test/adapters/railsapp/config/initializers/mime_types.rb
|
142
|
-
- test/adapters/railsapp/config/initializers/secret_token.rb
|
143
|
-
- test/adapters/railsapp/config/initializers/session_store.rb
|
144
|
-
- test/adapters/railsapp/config/routes.rb
|
145
|
-
- test/adapters/railsapp/db/seeds.rb
|
146
|
-
- test/adapters/railsapp/spec/spec_helper.rb
|
147
|
-
- test/adapters/railsapp/spec/wrong_spec.rb
|
148
|
-
- test/adapters/rspec1/failing_spec.rb
|
149
|
-
- test/adapters/rspec2/failing_spec.rb
|
150
|
-
- test/adapters/rspec_rails_test.rb
|
151
|
-
- test/adapters/rspec_test.rb
|
152
|
-
- test/adapters/test_unit_test.rb
|
153
|
-
- test/assert_advanced_test.rb
|
154
|
-
- test/assert_test.rb
|
155
|
-
- test/capturing_test.rb
|
156
|
-
- test/chunk_test.rb
|
157
|
-
- test/close_to_test.rb
|
158
|
-
- test/config_test.rb
|
159
|
-
- test/d_test.rb
|
160
|
-
- test/failure_message_test.rb
|
161
|
-
- test/failures_test.rb
|
162
|
-
- test/message/array_diff_test.rb
|
163
|
-
- test/message/test_context_test.rb
|
164
|
-
- test/rescuing_test.rb
|
165
|
-
- test/separate.rb
|
166
|
-
- test/sexp_ext_test.rb
|
167
|
-
- test/string_comparison_test.rb
|
168
|
-
- test/suite.rb
|
169
|
-
- test/test_helper.rb
|
170
|
-
- test/wrong_test.rb
|
104
|
+
- lib/wrong.rb
|
105
|
+
- lib/wrong/assert.rb
|
106
|
+
- lib/wrong/chunk.rb
|
107
|
+
- lib/wrong/close_to.rb
|
108
|
+
- lib/wrong/config.rb
|
109
|
+
- lib/wrong/d.rb
|
110
|
+
- lib/wrong/failure_message.rb
|
111
|
+
- lib/wrong/helpers.rb
|
112
|
+
- lib/wrong/irb.rb
|
113
|
+
- lib/wrong/rainbow.rb
|
114
|
+
- lib/wrong/ruby2ruby_patch.rb
|
115
|
+
- lib/wrong/sexp_ext.rb
|
116
|
+
- lib/wrong/version.rb
|
117
|
+
- lib/wrong/adapters/minitest.rb
|
118
|
+
- lib/wrong/adapters/rspec.rb
|
119
|
+
- lib/wrong/adapters/test_unit.rb
|
120
|
+
- lib/wrong/message/array_diff.rb
|
121
|
+
- lib/wrong/message/string_comparison.rb
|
122
|
+
- lib/wrong/message/test_context.rb
|
123
|
+
- README.markdown
|
171
124
|
has_rdoc: true
|
172
125
|
homepage: http://github.com/sconover/wrong
|
173
126
|
licenses: []
|
@@ -176,71 +129,68 @@ post_install_message:
|
|
176
129
|
rdoc_options: []
|
177
130
|
|
178
131
|
require_paths:
|
179
|
-
- lib
|
132
|
+
- lib
|
180
133
|
required_ruby_version: !ruby/object:Gem::Requirement
|
181
|
-
none: false
|
182
134
|
requirements:
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
version: "0"
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
segments:
|
138
|
+
- 0
|
139
|
+
version: "0"
|
189
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
|
-
none: false
|
191
141
|
requirements:
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
segments:
|
145
|
+
- 0
|
146
|
+
version: "0"
|
197
147
|
requirements: []
|
198
148
|
|
199
149
|
rubyforge_project: wrong
|
200
|
-
rubygems_version: 1.3.
|
150
|
+
rubygems_version: 1.3.6
|
201
151
|
signing_key:
|
202
152
|
specification_version: 3
|
203
153
|
summary: Wrong provides a general assert method that takes a predicate block. Assertion failure messages are rich in detail.
|
204
154
|
test_files:
|
205
|
-
- test/
|
206
|
-
- test/
|
207
|
-
- test/
|
208
|
-
- test/
|
209
|
-
- test/
|
210
|
-
- test/
|
211
|
-
- test/
|
212
|
-
- test/
|
213
|
-
- test/
|
214
|
-
- test/
|
215
|
-
- test/
|
216
|
-
- test/
|
217
|
-
- test/
|
218
|
-
- test/
|
219
|
-
- test/
|
220
|
-
- test/
|
221
|
-
- test/adapters/
|
222
|
-
- test/adapters/
|
223
|
-
- test/adapters/
|
224
|
-
- test/adapters/
|
225
|
-
- test/adapters/
|
226
|
-
- test/adapters/
|
227
|
-
- test/adapters/
|
228
|
-
- test/adapters/
|
229
|
-
- test/
|
230
|
-
- test/
|
231
|
-
- test/
|
232
|
-
- test/
|
233
|
-
- test/
|
234
|
-
- test/
|
235
|
-
- test/
|
236
|
-
- test/
|
237
|
-
- test/
|
238
|
-
- test/
|
239
|
-
- test/
|
240
|
-
- test/
|
241
|
-
- test/
|
242
|
-
- test/
|
243
|
-
- test/
|
244
|
-
- test/
|
245
|
-
- test/
|
246
|
-
- test/
|
155
|
+
- test/assert_advanced_test.rb
|
156
|
+
- test/assert_test.rb
|
157
|
+
- test/capturing_test.rb
|
158
|
+
- test/chunk_test.rb
|
159
|
+
- test/close_to_test.rb
|
160
|
+
- test/config_test.rb
|
161
|
+
- test/d_test.rb
|
162
|
+
- test/failure_message_test.rb
|
163
|
+
- test/failures_test.rb
|
164
|
+
- test/rescuing_test.rb
|
165
|
+
- test/separate.rb
|
166
|
+
- test/sexp_ext_test.rb
|
167
|
+
- test/string_comparison_test.rb
|
168
|
+
- test/suite.rb
|
169
|
+
- test/test_helper.rb
|
170
|
+
- test/wrong_test.rb
|
171
|
+
- test/adapters/minitest_test.rb
|
172
|
+
- test/adapters/rspec_rails_test.rb
|
173
|
+
- test/adapters/rspec_test.rb
|
174
|
+
- test/adapters/test_unit_test.rb
|
175
|
+
- test/adapters/railsapp/app/controllers/application_controller.rb
|
176
|
+
- test/adapters/railsapp/app/helpers/application_helper.rb
|
177
|
+
- test/adapters/railsapp/autotest/discover.rb
|
178
|
+
- test/adapters/railsapp/config/application.rb
|
179
|
+
- test/adapters/railsapp/config/boot.rb
|
180
|
+
- test/adapters/railsapp/config/environment.rb
|
181
|
+
- test/adapters/railsapp/config/routes.rb
|
182
|
+
- test/adapters/railsapp/config/environments/development.rb
|
183
|
+
- test/adapters/railsapp/config/environments/production.rb
|
184
|
+
- test/adapters/railsapp/config/environments/test.rb
|
185
|
+
- test/adapters/railsapp/config/initializers/backtrace_silencers.rb
|
186
|
+
- test/adapters/railsapp/config/initializers/inflections.rb
|
187
|
+
- test/adapters/railsapp/config/initializers/mime_types.rb
|
188
|
+
- test/adapters/railsapp/config/initializers/secret_token.rb
|
189
|
+
- test/adapters/railsapp/config/initializers/session_store.rb
|
190
|
+
- test/adapters/railsapp/db/seeds.rb
|
191
|
+
- test/adapters/railsapp/spec/spec_helper.rb
|
192
|
+
- test/adapters/railsapp/spec/wrong_spec.rb
|
193
|
+
- test/adapters/rspec1/failing_spec.rb
|
194
|
+
- test/adapters/rspec2/failing_spec.rb
|
195
|
+
- test/message/array_diff_test.rb
|
196
|
+
- test/message/test_context_test.rb
|