Fix rubocop/ruby 2.6 warning about passing **options as single hash
This commit is contained in:
parent
b34f793696
commit
fb5c64e4de
|
@ -107,7 +107,7 @@ module Capybara
|
||||||
#
|
#
|
||||||
# @return [Capybara::Node::Element] The element chosen or the label clicked
|
# @return [Capybara::Node::Element] The element chosen or the label clicked
|
||||||
def choose(locator = nil, **options)
|
def choose(locator = nil, **options)
|
||||||
_check_with_label(:radio_button, true, locator, **options)
|
_check_with_label(:radio_button, true, locator, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -130,7 +130,7 @@ module Capybara
|
||||||
#
|
#
|
||||||
# @return [Capybara::Node::Element] The element checked or the label clicked
|
# @return [Capybara::Node::Element] The element checked or the label clicked
|
||||||
def check(locator = nil, **options)
|
def check(locator = nil, **options)
|
||||||
_check_with_label(:checkbox, true, locator, **options)
|
_check_with_label(:checkbox, true, locator, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -153,7 +153,7 @@ module Capybara
|
||||||
#
|
#
|
||||||
# @return [Capybara::Node::Element] The element unchecked or the label clicked
|
# @return [Capybara::Node::Element] The element unchecked or the label clicked
|
||||||
def uncheck(locator = nil, **options)
|
def uncheck(locator = nil, **options)
|
||||||
_check_with_label(:checkbox, false, locator, **options)
|
_check_with_label(:checkbox, false, locator, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
|
@ -55,7 +55,7 @@ module Capybara
|
||||||
#
|
#
|
||||||
def ancestor(*args, **options, &optional_filter_block)
|
def ancestor(*args, **options, &optional_filter_block)
|
||||||
options[:session_options] = session_options
|
options[:session_options] = session_options
|
||||||
synced_resolve Capybara::Queries::AncestorQuery.new(*args, **options, &optional_filter_block)
|
synced_resolve Capybara::Queries::AncestorQuery.new(*args, options, &optional_filter_block)
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -81,7 +81,7 @@ module Capybara
|
||||||
#
|
#
|
||||||
def sibling(*args, **options, &optional_filter_block)
|
def sibling(*args, **options, &optional_filter_block)
|
||||||
options[:session_options] = session_options
|
options[:session_options] = session_options
|
||||||
synced_resolve Capybara::Queries::SiblingQuery.new(*args, **options, &optional_filter_block)
|
synced_resolve Capybara::Queries::SiblingQuery.new(*args, options, &optional_filter_block)
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -276,7 +276,7 @@ module Capybara
|
||||||
#
|
#
|
||||||
def first(*args, **options, &optional_filter_block)
|
def first(*args, **options, &optional_filter_block)
|
||||||
options = { minimum: 1 }.merge(options) unless options_include_minimum?(options)
|
options = { minimum: 1 }.merge(options) unless options_include_minimum?(options)
|
||||||
all(*args, **options, &optional_filter_block).first
|
all(*args, options, &optional_filter_block).first
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue