Changed ActiveSupport::Derprecation.silence to assert_deprecated.

This commit is contained in:
Timm 2013-09-23 18:03:41 +02:00
parent 68e08fe8c9
commit 2e8132444f

@ -269,14 +269,14 @@ def test_nested_css_select
# 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