aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/string_ext_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-02 11:24:05 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-02 11:24:05 -0300
commita9752dcfd15bcddfe7b6f7126f3a6e0ba5927c56 (patch)
tree83affec98f59765be18d90989f1e1019d49e0876 /activesupport/test/core_ext/string_ext_test.rb
parent821f968726617b24340c368f025a78adff731a8f (diff)
downloadrails-a9752dcfd15bcddfe7b6f7126f3a6e0ba5927c56.tar.gz
rails-a9752dcfd15bcddfe7b6f7126f3a6e0ba5927c56.tar.bz2
rails-a9752dcfd15bcddfe7b6f7126f3a6e0ba5927c56.zip
Use asert_deprecated
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