Skip to content

Commit

Permalink
Merge branch 'master' into new-views
Browse files Browse the repository at this point in the history
  • Loading branch information
yrashk committed Apr 30, 2008
2 parents 0022ab2 + a3c0715 commit b54ffce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/lib/strokedb/document/meta_spec.rb
Expand Up @@ -69,7 +69,9 @@
it "should return first document if no args are passed to #first" do
a = SomeName.create!(:slot1 => 1)
b = SomeName.create!(:slot1 => 2)
SomeName.first.should == SomeName.find.first
a_and_b = SomeName.find
a_and_b.to_set.should == [a,b].to_set
a_and_b.member?(SomeName.first).should be_true
end

it "correctly handles finding via UUID on call to #first" do
Expand All @@ -86,7 +88,9 @@
it "should return last document if no args are passed to #last" do
a = SomeName.create!(:slot1 => 1)
b = SomeName.create!(:slot1 => 2)
SomeName.last.should == SomeName.find.last
a_and_b = SomeName.find
a_and_b.to_set.should == [a,b].to_set
a_and_b.member?(SomeName.last).should be_true
end

it "correctly handles finding via UUID on call to #last" do
Expand Down

0 comments on commit b54ffce

Please sign in to comment.