From a9752dcfd15bcddfe7b6f7126f3a6e0ba5927c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 2 Apr 2014 11:24:05 -0300 Subject: Use asert_deprecated --- activesupport/test/core_ext/string_ext_test.rb | 8 +++++--- 1 file 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! "" - assert_equal other, "<foo>other" end + + assert_equal other, "<foo>other" end test "Concatting safe onto unsafe yields unsafe" do -- cgit v1.2.3