diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-02 11:24:05 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-02 11:24:05 -0300 |
commit | a9752dcfd15bcddfe7b6f7126f3a6e0ba5927c56 (patch) | |
tree | 83affec98f59765be18d90989f1e1019d49e0876 | |
parent | 821f968726617b24340c368f025a78adff731a8f (diff) | |
download | rails-a9752dcfd15bcddfe7b6f7126f3a6e0ba5927c56.tar.gz rails-a9752dcfd15bcddfe7b6f7126f3a6e0ba5927c56.tar.bz2 rails-a9752dcfd15bcddfe7b6f7126f3a6e0ba5927c56.zip |
Use asert_deprecated
-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 |