diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 11:07:03 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 11:58:44 -0300 |
commit | 3a59dd212315ebb9bae8338b98af259ac00bbef3 (patch) | |
tree | 637a1d69a53da1cb7798b0790f76936ed3a0e6ce /activerecord/test/cases | |
parent | ede8c199a85cfbb6457d5630ec1e285e5ec49313 (diff) | |
download | rails-3a59dd212315ebb9bae8338b98af259ac00bbef3.tar.gz rails-3a59dd212315ebb9bae8338b98af259ac00bbef3.tar.bz2 rails-3a59dd212315ebb9bae8338b98af259ac00bbef3.zip |
Remove deprecated `sanitize_sql_hash_for_conditions`
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/sanitize_test.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/activerecord/test/cases/sanitize_test.rb b/activerecord/test/cases/sanitize_test.rb index f477cf7d92..262e0abc22 100644 --- a/activerecord/test/cases/sanitize_test.rb +++ b/activerecord/test/cases/sanitize_test.rb @@ -7,17 +7,6 @@ class SanitizeTest < ActiveRecord::TestCase def setup end - def test_sanitize_sql_hash_handles_associations - quoted_bambi = ActiveRecord::Base.connection.quote("Bambi") - quoted_column_name = ActiveRecord::Base.connection.quote_column_name("name") - quoted_table_name = ActiveRecord::Base.connection.quote_table_name("adorable_animals") - expected_value = "#{quoted_table_name}.#{quoted_column_name} = #{quoted_bambi}" - - assert_deprecated do - assert_equal expected_value, Binary.send(:sanitize_sql_hash, {adorable_animals: {name: 'Bambi'}}) - end - end - def test_sanitize_sql_array_handles_string_interpolation quoted_bambi = ActiveRecord::Base.connection.quote_string("Bambi") assert_equal "name=#{quoted_bambi}", Binary.send(:sanitize_sql_array, ["name=%s", "Bambi"]) |