lib/rubocop/cop/rspec/capybara/specific_actions.rb in rubocop-rspec-2.15.0 vs lib/rubocop/cop/rspec/capybara/specific_actions.rb in rubocop-rspec-2.16.0
- old
+ new
@@ -18,10 +18,10 @@
# click_link
# click_button(class: 'cls')
# click_link(exact_text: 'foo')
# find('div').click_button
#
- class SpecificActions < Base
+ class SpecificActions < ::RuboCop::Cop::Base
MSG = "Prefer `%<good_action>s` over `find('%<selector>s').click`."
RESTRICT_ON_SEND = %i[click].freeze
SPECIFIC_ACTION = {
'button' => 'button',
'a' => 'link'