Permalink
Browse files

Use asert_deprecated

  • Loading branch information...
1 parent 821f968 commit a9752dcfd15bcddfe7b6f7126f3a6e0ba5927c56 @rafaelfranca rafaelfranca committed Apr 2, 2014
Showing with 5 additions and 3 deletions.
  1. +5 −3 activesupport/test/core_ext/string_ext_test.rb
@@ -623,11 +623,13 @@ def to_s
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

1 comment on commit a9752dc

Contributor

rwz commented on a9752dc Apr 2, 2014

Oh, cool, I didn't know about assert_deprecated!

Please sign in to comment.