mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Fix parameter name type
This commit is contained in:
parent
98787a9c69
commit
60f117c4af
2 changed files with 5 additions and 1 deletions
|
@ -64,7 +64,7 @@ module Capybara
|
|||
el.assert_any_of_selectors(*@args, **session_query_options, &@filter_block)
|
||||
end
|
||||
|
||||
def does_not_match?(_actual)
|
||||
def does_not_match?(el)
|
||||
el.assert_none_of_selectors(*@args, **session_query_options, &@filter_block)
|
||||
end
|
||||
|
||||
|
|
|
@ -22,4 +22,8 @@ Capybara::SpecHelper.spec '#have_any_of_selectors' do
|
|||
expect(@session).to have_any_of_selectors('p a#blah', 'h2#h2three')
|
||||
end.to raise_error ::RSpec::Expectations::ExpectationNotMetError
|
||||
end
|
||||
|
||||
it 'should be negateable' do
|
||||
expect(@session).not_to have_any_of_selectors(:css, 'span a#foo', 'h2#h2nope', 'h2#h2one_no')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue