Skip to content

Commit

Permalink
adding a test to ensure offsets with no limits will work [#5316 state…
Browse files Browse the repository at this point in the history
…:resolved]
  • Loading branch information
tenderlove committed Oct 21, 2010
1 parent 828bb94 commit 410114e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions activerecord/test/cases/base_test.rb
Expand Up @@ -1150,6 +1150,12 @@ def test_scoped_find_conditions
assert_equal 3, scoped_developers.size
end

def test_no_limit_offset
assert_nothing_raised do
Developer.find(:all, :offset => 2)
end
end

def test_scoped_find_limit_offset
scoped_developers = Developer.send(:with_scope, :find => { :limit => 3, :offset => 2 }) do
Developer.find(:all, :order => 'id')
Expand Down

0 comments on commit 410114e

Please sign in to comment.