diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-08-16 22:54:43 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-16 22:54:43 -0300 |
commit | 12a42f79adb972948c7509a0be2971ca2c37e7c3 (patch) | |
tree | ac162e25981845606bc2f1ccf1f5cfad4577ed44 /activerecord/test | |
parent | a1e4c197cb12fef66530a2edfaeda75566088d1f (diff) | |
parent | d14a5defeb0c9f2972f90d83cb625beed8105d76 (diff) | |
download | rails-12a42f79adb972948c7509a0be2971ca2c37e7c3.tar.gz rails-12a42f79adb972948c7509a0be2971ca2c37e7c3.tar.bz2 rails-12a42f79adb972948c7509a0be2971ca2c37e7c3.zip |
Merge pull request #26000 from kamipo/remove_sanitize
Remove internal `sanitize` method
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index f8f9f2d383..a13e89b240 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -874,11 +874,6 @@ class FinderTest < ActiveRecord::TestCase assert_kind_of Time, Topic.where(["id = :id", { id: 1 }]).first.written_on end - def test_string_sanitation - assert_not_equal "'something ' 1=1'", ActiveRecord::Base.sanitize("something ' 1=1") - assert_equal "'something; select table'", ActiveRecord::Base.sanitize("something; select table") - end - def test_count_by_sql assert_equal(0, Entrant.count_by_sql("SELECT COUNT(*) FROM entrants WHERE id > 3")) assert_equal(1, Entrant.count_by_sql(["SELECT COUNT(*) FROM entrants WHERE id > ?", 2])) |