Sha256: e7b6cf5f96f79ebd43c129401ba8f918b0bdf45bc34e2faced4e31d3e7113b5b

Contents?: true

Size: 799 Bytes

Versions: 28

Compression:

Stored size: 799 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    module RSpec
      module Capybara
        # @!parse
        #   # Checks for there is a more specific actions offered by Capybara.
        #   #
        #   # @example
        #   #
        #   #   # bad
        #   #   find('a').click
        #   #   find('button.cls').click
        #   #   find('a', exact_text: 'foo').click
        #   #   find('div button').click
        #   #
        #   #   # good
        #   #   click_link
        #   #   click_button(class: 'cls')
        #   #   click_link(exact_text: 'foo')
        #   #   find('div').click_button
        #   #
        #   class SpecificActions < ::RuboCop::Cop::Base; end
        SpecificActions = ::RuboCop::Cop::Capybara::SpecificActions
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
rubocop-rspec-2.31.0 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.30.0 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.29.2 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.29.1 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.29.0 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.28.0 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.27.1 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.27.0 lib/rubocop/cop/rspec/capybara/specific_actions.rb
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-2.26.1/lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.26.1 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.26.0 lib/rubocop/cop/rspec/capybara/specific_actions.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rubocop-rspec-2.22.0/lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.25.0 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.24.1 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.24.0 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.23.2 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.23.1 lib/rubocop/cop/rspec/capybara/specific_actions.rb
rubocop-rspec-2.23.0 lib/rubocop/cop/rspec/capybara/specific_actions.rb
mlh-rubocop-config-1.0.2 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-2.22.0/lib/rubocop/cop/rspec/capybara/specific_actions.rb
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-2.22.0/lib/rubocop/cop/rspec/capybara/specific_actions.rb