Skip to content

Commit 957fedb

Browse files
committed
Downcase the message and switch back to all (ARGH)
1 parent 3a21f32 commit 957fedb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/specification/linter_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ def message_should_include(*values)
9999
results.should.not.be.nil
100100

101101
matched = results.select do |result|
102-
values.any? do |value|
103-
result.message.include?(value.downcase)
102+
values.all? do |value|
103+
result.message.downcase.include?(value.downcase)
104104
end
105105
end
106106

107-
matched.size.should >= 1
107+
matched.size.should == 1
108108
end
109109

110110
#------------------#

0 commit comments

Comments
 (0)