diff options
author | Denis Jean <denis.jean@ecairn.com> | 2012-01-11 12:45:55 +0100 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2012-03-13 08:52:45 +0530 |
commit | f67944e7579711e2c28ea8b48ec739c1ff1966ae (patch) | |
tree | 800057ac2562ad0abe8d800cdb98e20d978e9249 /activerecord/test/cases/finder_test.rb | |
parent | 5f26ce699f9e695c434cbff20626a9ff4d3114e4 (diff) | |
download | rails-f67944e7579711e2c28ea8b48ec739c1ff1966ae.tar.gz rails-f67944e7579711e2c28ea8b48ec739c1ff1966ae.tar.bz2 rails-f67944e7579711e2c28ea8b48ec739c1ff1966ae.zip |
fix activerecord query_method regression with offset into Fixnum
add test to show offset query_methods on mysql & mysql2
change test to cover public API
Diffstat (limited to 'activerecord/test/cases/finder_test.rb')
-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 173044fc94..4705252c05 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -1204,6 +1204,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) |