diff options
-rw-r--r-- | actionview/test/template/assert_select_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/assert_select_test.rb b/actionview/test/template/assert_select_test.rb index e53b9635e5..1b540399f9 100644 --- a/actionview/test/template/assert_select_test.rb +++ b/actionview/test/template/assert_select_test.rb @@ -269,14 +269,14 @@ class AssertSelectTest < ActionController::TestCase # testing invalid selectors def test_assert_select_with_invalid_selector render_html '<a href="http://example.com">hello</a>' - ActiveSupport::Deprecation.silence do + assert_deprecated do assert_nil assert_select("[href=http://example.com]") end end def test_css_select_with_invalid_selector render_html '<a href="http://example.com">hello</a>' - ActiveSupport::Deprecation.silence do + assert_deprecated do assert_nil css_select("[href=http://example.com]") end end |