Permalink
Browse files

fix warnings on include spec

  • Loading branch information...
1 parent e4921ca commit e31824976efce402d9be4c7618f66e15df51b9b6 @dchelimsky dchelimsky committed Dec 11, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/rspec/matchers/include_spec.rb
@@ -276,7 +276,7 @@
{:a => 1, :b => 1}.should include(:c => 1, :d => 1)
rescue Exception => e
ensure
- e.message.should match(/expected {:a=>1, :b=>1} to include {.*}/)
+ e.message.should match(/expected \{:a=>1, :b=>1\} to include/)
e.message.match(/include (.*)$/) do |m|
eval(m[1]).should eq({:c=>1,:d=>1})
end

0 comments on commit e318249

Please sign in to comment.