lib/rubocop/cop/capybara/rspec/have_selector.rb in rubocop-capybara-2.19.0 vs lib/rubocop/cop/capybara/rspec/have_selector.rb in rubocop-capybara-2.20.0
- old
+ new
@@ -42,10 +42,10 @@
SELECTORS = %i[css xpath].freeze
def on_send(node)
argument = node.first_argument
on_select_with_type(node, argument) if argument.sym_type?
- on_select_without_type(node) if argument.str_type?
+ on_select_without_type(node) if %i[str dstr].include?(argument.type)
end
private
def on_select_with_type(node, type)