change count to limit
This commit is contained in:
parent
ba8f84127c
commit
7aaffe5d63
6 changed files with 23 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue