Changed ActiveSupport::Derprecation.silence to assert_deprecated.
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user