1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add an assert_deprecated for sanitize_sql_hash_for_conditions

This commit is contained in:
Sean Griffin 2014-11-02 14:01:57 -07:00
parent 76d6d88280
commit 999a07e3b9

View file

@ -13,7 +13,9 @@ class SanitizeTest < ActiveRecord::TestCase
quoted_table_name = ActiveRecord::Base.connection.quote_table_name("adorable_animals")
expected_value = "#{quoted_table_name}.#{quoted_column_name} = #{quoted_bambi}"
assert_equal expected_value, Binary.send(:sanitize_sql_hash, {adorable_animals: {name: '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