Permalink
Browse files

Fix failing spec.

  • Loading branch information...
1 parent 45937f4 commit e958223cf38edb9c64882fe520b0117792520116 @jnunemaker jnunemaker committed Oct 10, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/plucky/criteria_hash_spec.rb
View
6 spec/plucky/criteria_hash_spec.rb
@@ -307,9 +307,9 @@
end
it "is able to merge two modifier hashes with hash values" do
- c1 = CriteriaHash.new(:arr => {'$elemMatch' => {:foo => 'bar'}})
- c2 = CriteriaHash.new(:arr => {'$elemMatch' => {:omg => 'ponies'}})
- c1.merge(c2).should == CriteriaHash.new(:arr => {'$elemMatch' => {:foo => 'bar', :omg => 'ponies'}})
+ c1 = described_class.new(:arr => {'$elemMatch' => {:foo => 'bar'}})
+ c2 = described_class.new(:arr => {'$elemMatch' => {:omg => 'ponies'}})
+ c1.merge(c2).should == described_class.new(:arr => {'$elemMatch' => {:foo => 'bar', :omg => 'ponies'}})
end
it "merges matching keys with a single modifier" do

0 comments on commit e958223

Please sign in to comment.