diff options
author | José Valim <jose.valim@gmail.com> | 2012-03-12 05:16:19 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-03-12 05:16:19 -0700 |
commit | 1e2de2cb74088a4dda5799587530be63279cc9c8 (patch) | |
tree | 93c2ec480fc6e4388de5a990e28c15f96d4345d1 /activerecord/test | |
parent | 0533ee45a7a03145d4a37a2b6e3275c6f625a295 (diff) | |
parent | a2c2f406612a1855fbc6fe816cf3e15b4ef531d3 (diff) | |
download | rails-1e2de2cb74088a4dda5799587530be63279cc9c8.tar.gz rails-1e2de2cb74088a4dda5799587530be63279cc9c8.tar.bz2 rails-1e2de2cb74088a4dda5799587530be63279cc9c8.zip |
Merge pull request #5390 from arunagw/picked_commits
fix activerecord query_method regression with offset into Fixnum
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index 76c041397a..8a7d208524 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -1185,6 +1185,10 @@ class FinderTest < ActiveRecord::TestCase end end + def test_finder_with_offset_string + assert_nothing_raised(ActiveRecord::StatementInvalid) { Topic.find(:all, :offset => "3") } + end + protected def bind(statement, *vars) if vars.first.is_a?(Hash) |