Skip to content

Commit

Permalink
add test that proves paginate(:from) works. closes mislav#244
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Oct 7, 2008
1 parent d5fb418 commit 39e77cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/finder_test.rb
Expand Up @@ -444,5 +444,10 @@ def test_doesnt_remove_referenced_includes_in_count
:include => :projects, :conditions => 'projects.id > 2'
end
end

def test_paginate_from
result = Developer.paginate(:from => 'users', :page => 1, :per_page => 1)
assert_equal 1, result.size
end
end
end

0 comments on commit 39e77cf

Please sign in to comment.