mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Update rubocop
This commit is contained in:
parent
5d0284c0bf
commit
d8ceecb4cd
3 changed files with 3 additions and 4 deletions
|
@ -314,7 +314,7 @@ module Capybara
|
|||
|
||||
begin
|
||||
find(:datalist_input, from, **options)
|
||||
rescue Capybara::ElementNotFound => dlinput_error # rubocop:disable Naming/RescuedExceptionsVariableName
|
||||
rescue Capybara::ElementNotFound => dlinput_error
|
||||
raise Capybara::ElementNotFound, "#{select_error.message} and #{dlinput_error.message}"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -69,7 +69,7 @@ module Capybara
|
|||
def valid_value?(value)
|
||||
return true unless @options.key?(:valid_values)
|
||||
|
||||
Array(@options[:valid_values]).any? { |valid| valid === value } # rubocop:disable Style/CaseEquality,Performance/RedundantEqualityComparisonBlock
|
||||
Array(@options[:valid_values]).any? { |valid| valid === value } # rubocop:disable Style/CaseEquality
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -293,7 +293,7 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
|
|||
end
|
||||
|
||||
def invalid_element_errors
|
||||
@invalid_element_errors ||= begin
|
||||
@invalid_element_errors ||=
|
||||
[
|
||||
::Selenium::WebDriver::Error::StaleElementReferenceError,
|
||||
::Selenium::WebDriver::Error::ElementNotInteractableError,
|
||||
|
@ -313,7 +313,6 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def no_such_window_error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue