diff options
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/string_ext_test.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb index 4a7c2dac39..d761a0dbd8 100644 --- a/activesupport/test/core_ext/string_ext_test.rb +++ b/activesupport/test/core_ext/string_ext_test.rb @@ -623,11 +623,13 @@ class OutputSafetyTest < ActiveSupport::TestCase end test "Deprecated #prepend! method is still present" do - ActiveSupport::Deprecation.silence do - other = "other".html_safe + other = "other".html_safe + + assert_deprecated do other.prepend! "<foo>" - assert_equal other, "<foo>other" end + + assert_equal other, "<foo>other" end test "Concatting safe onto unsafe yields unsafe" do |