Skip to content
Browse files

Fix potential false-positive so that it will fail correctly if there …

…is a regression.

- See #140.
  • Loading branch information...
1 parent b98f0ba commit 694cbf1423bb2ba23d6acf5fe5c131252432d1db @dchelimsky dchelimsky committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/rspec/matchers/have_spec.rb
View
2 spec/rspec/matchers/have_spec.rb
@@ -386,7 +386,7 @@ def items
describe "have(n).things on an object which is not a collection nor contains one" do
it "fails" do
- lambda { Object.new.should have(2).things }.should raise_error(NoMethodError) {|e| e.name == "things" }
+ lambda { Object.new.should have(2).things }.should raise_error(NoMethodError) {|e| e.name.should eq :things }
end
end

0 comments on commit 694cbf1

Please sign in to comment.
Something went wrong with that request. Please try again.