diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-03 15:12:51 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-03 15:59:13 -0800 |
commit | 60cf65def805995bcca184c40b44bb01d86a48aa (patch) | |
tree | 532d878e3cfa2c97e7ffbfd3d59ce8dc956e206e /activerecord/test | |
parent | b9ce3419e5a9bdc4ade20f21a6c93e76a3b69caf (diff) | |
download | rails-60cf65def805995bcca184c40b44bb01d86a48aa.tar.gz rails-60cf65def805995bcca184c40b44bb01d86a48aa.tar.bz2 rails-60cf65def805995bcca184c40b44bb01d86a48aa.zip |
herp derpricating add_limit_offset!
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapter_test.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/test/cases/adapter_test.rb b/activerecord/test/cases/adapter_test.rb index 646aa88d80..49b2e945c3 100644 --- a/activerecord/test/cases/adapter_test.rb +++ b/activerecord/test/cases/adapter_test.rb @@ -141,16 +141,4 @@ class AdapterTest < ActiveRecord::TestCase end end end - - def test_add_limit_offset_should_sanitize_sql_injection_for_limit_without_comas - sql_inject = "1 select * from schema" - assert_no_match(/schema/, @connection.add_limit_offset!("", :limit=>sql_inject)) - assert_no_match(/schema/, @connection.add_limit_offset!("", :limit=>sql_inject, :offset=>7)) - end - - def test_add_limit_offset_should_sanitize_sql_injection_for_limit_with_comas - sql_inject = "1, 7 procedure help()" - assert_no_match(/procedure/, @connection.add_limit_offset!("", :limit=>sql_inject)) - assert_no_match(/procedure/, @connection.add_limit_offset!("", :limit=>sql_inject, :offset=>7)) - end end |