Sha256: a1506bdac72b196a62a2b51f514acee25d9d17ae1a354afa48b39e5c5b4fd653

Contents?: true

Size: 631 Bytes

Versions: 28

Compression:

Stored size: 631 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    module RSpec
      module Capybara
        # @!parse
        #   # Checks if there is a more specific finder offered by Capybara.
        #   #
        #   # @example
        #   #   # bad
        #   #   find('#some-id')
        #   #   find('[visible][id=some-id]')
        #   #
        #   #   # good
        #   #   find_by_id('some-id')
        #   #   find_by_id('some-id', visible: true)
        #   #
        #   class SpecificFinders < ::RuboCop::Cop::Base; end
        SpecificFinders = ::RuboCop::Cop::Capybara::SpecificFinders
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-rspec-2.22.0/lib/rubocop/cop/rspec/capybara/specific_finders.rb
fablicop-1.10.2 vendor/bundle/ruby/3.2.0/gems/rubocop-rspec-2.22.0/lib/rubocop/cop/rspec/capybara/specific_finders.rb
rubocop-rspec-2.22.0 lib/rubocop/cop/rspec/capybara/specific_finders.rb
rubocop-rspec-2.21.0 lib/rubocop/cop/rspec/capybara/specific_finders.rb
rubocop-rspec-2.20.0 lib/rubocop/cop/rspec/capybara/specific_finders.rb
rubocop-rspec-2.19.0 lib/rubocop/cop/rspec/capybara/specific_finders.rb
rubocop-rspec-2.18.1 lib/rubocop/cop/rspec/capybara/specific_finders.rb
rubocop-rspec-2.18.0 lib/rubocop/cop/rspec/capybara/specific_finders.rb