Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix failing spec.

  • Loading branch information...
commit e958223cf38edb9c64882fe520b0117792520116 1 parent 45937f4
@jnunemaker jnunemaker authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.