Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use asert_deprecated

  • Loading branch information...
commit a9752dcfd15bcddfe7b6f7126f3a6e0ba5927c56 1 parent 821f968
Rafael Mendonça França rafaelfranca authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 activesupport/test/core_ext/string_ext_test.rb
8 activesupport/test/core_ext/string_ext_test.rb
View
@@ -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

Pavel Pravosud

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

Please sign in to comment.
Something went wrong with that request. Please try again.