Skip to content

Commit 9e42358

Browse files
authored
Merge pull request rails#54370 from byroot/quoting-test-deprecation
Add a missing `assert_deprecated` in quoting_test.rb
2 parents 0659e0b + 65f725d commit 9e42358

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

activerecord/test/cases/quoting_test.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,10 @@ def test_quote_string_no_column
190190
end
191191

192192
def test_quote_as_mb_chars_no_column
193-
string = ActiveSupport::Multibyte::Chars.new('lo\l')
194-
assert_equal "'lo\\\\l'", @quoter.quote(string)
193+
assert_deprecated(ActiveSupport.deprecator) do
194+
string = ActiveSupport::Multibyte::Chars.new('lo\l')
195+
assert_equal "'lo\\\\l'", @quoter.quote(string)
196+
end
195197
end
196198

197199
def test_quote_duration

0 commit comments

Comments
 (0)