Skip to content
This repository
Browse code

Fix failing spec.

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

- Closes #44.
- Closes #45.
  • Loading branch information...
commit a10059b4e7095735a1f4499b26910afb03dd720a 1 parent 382bf52
Myron Marston myronmarston authored dchelimsky committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  spec/rspec/matchers/include_spec.rb
2  spec/rspec/matchers/include_spec.rb
@@ -274,7 +274,7 @@
274 274 it "fails if target lacks both of the keys" do
275 275 lambda {
276 276 {:a => 1, :b => 1}.should include(:c => 1, :d => 1)
277   - }.should fail_with(%Q|expected {:a=>1, :b=>1} to include {:c=>1, :d=>1}|)
  277 + }.should fail_with(%r|expected {:a=>1, :b=>1} to include {.*}|)
278 278 end
279 279 end
280 280

0 comments on commit a10059b

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