Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe Post, 'in general' do
- it "should have recent named scope default to limit 5" do
- recent_scope = { :limit => 5, :order => "created_at DESC" }
- Post.recent.proxy_options.should == recent_scope
- end
- it "should have recent named scope accepting limit as argument" do
- recent_scope = { :limit => 10, :order => "created_at DESC" }
- Post.recent(10).proxy_options.should == recent_scope
- end
- end
Add Comment
Please, Sign In to add comment