提交 999a07e3 编写于 作者: S Sean Griffin

Add an `assert_deprecated` for `sanitize_sql_hash_for_conditions`

上级 76d6d882
......@@ -13,7 +13,9 @@ def test_sanitize_sql_hash_handles_associations
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册