aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/string_ext_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/core_ext/string_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb8
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, "&lt;foo&gt;other"
end
+
+ assert_equal other, "&lt;foo&gt;other"
end
test "Concatting safe onto unsafe yields unsafe" do