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:
parent
76d6d88280
commit
999a07e3b9
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue