Skip to content

Commit

Permalink
More fixing of message_should_include
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkalpin committed Nov 23, 2013
1 parent 5d9dbb2 commit 3a21f32
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions spec/specification/linter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,13 @@ def message_should_include(*values)
results = @linter.results
results.should.not.be.nil

results.each do |result|
results.map(&:message).should.include(result.message)
matched = results.select do |result|
values.any? do |value|
result.message.include?(value.downcase)
end
end

message = results.to_s.downcase
values.each do |value|
message.should.include(value.downcase)
end
matched.size.should >= 1
end

#------------------#
Expand Down

0 comments on commit 3a21f32

Please sign in to comment.