Browse files

Fix failing spec.

We can't depend on the order of the hash key/value pairs.

- Closes #44.
- Closes #45.
  • Loading branch information...
1 parent 382bf52 commit a10059b4e7095735a1f4499b26910afb03dd720a @myronmarston myronmarston committed with dchelimsky Dec 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/rspec/matchers/include_spec.rb
View
2 spec/rspec/matchers/include_spec.rb
@@ -274,7 +274,7 @@
it "fails if target lacks both of the keys" do
lambda {
{:a => 1, :b => 1}.should include(:c => 1, :d => 1)
- }.should fail_with(%Q|expected {:a=>1, :b=>1} to include {:c=>1, :d=>1}|)
+ }.should fail_with(%r|expected {:a=>1, :b=>1} to include {.*}|)
end
end

0 comments on commit a10059b

Please sign in to comment.