Skip to content

Commit

Permalink
Add failing spec for issue #205
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacques Crocker committed Jul 22, 2010
1 parent 64723a2 commit 27d9233
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/integration/mongoid/criteria_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@
@person = Person.create(:title => "Sir", :age => 33, :aliases => ["D", "Durran"], :things => [{:phone => 'HTC Incredible'}])
end

context "chaining multiple where" do
it "with the same key" do
Person.criteria.where(:title => "Sir").where(:title => "Mam").should == [@person]
end
end

context "with complex criterion" do

context "#all" do
Expand Down

0 comments on commit 27d9233

Please sign in to comment.