change count to limit

This commit is contained in:
Chris Anderson 2009-01-04 21:00:36 -08:00
parent ba8f84127c
commit 7aaffe5d63
6 changed files with 23 additions and 23 deletions

View file

@ -611,7 +611,7 @@ describe CouchRest::Model do
articles[1].title.should == 'not junk'
end
it "should be queryable with couchrest options" do
articles = Article.by_user_id_and_date :count => 1, :startkey => 'quentin'
articles = Article.by_user_id_and_date :limit => 1, :startkey => 'quentin'
articles.length.should == 1
articles[0].title.should == "even more interesting"
end