Index: test/limit_test.rb =================================================================== --- test/limit_test.rb (revision 323) +++ test/limit_test.rb (working copy) @@ -15,6 +15,9 @@ conditions = { :conditions => "users.name = 'jon'", :limit => '5' } User.expects(:find).with(:all, conditions) @sql.first(5) + conditions = { :conditions => "users.name = 'jon'", :limit => '7' } + User.expects(:find).with(:all, conditions) + @sql.first(7) end specify "[] with one element" do