Skip to content

Commit

Permalink
Update rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Mar 27, 2021
1 parent 5d0284c commit d8ceecb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/capybara/node/actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def find_select_or_datalist_input(from, options)

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
Expand Down
2 changes: 1 addition & 1 deletion lib/capybara/selector/filters/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def filter_context(context)
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
Expand Down
3 changes: 1 addition & 2 deletions lib/capybara/selenium/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def quit
end

def invalid_element_errors
@invalid_element_errors ||= begin
@invalid_element_errors ||=
[
::Selenium::WebDriver::Error::StaleElementReferenceError,
::Selenium::WebDriver::Error::ElementNotInteractableError,
Expand All @@ -313,7 +313,6 @@ def invalid_element_errors
end
end
end
end
end

def no_such_window_error
Expand Down

0 comments on commit d8ceecb

Please sign in to comment.