Sha256: 88ffb2ae97a6ca5551089e1ea9bfcdf5c9044aa04fe5f68acdac67118930456a

Contents?: true

Size: 399 Bytes

Versions: 17

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module RSpec
    module FactoryBot
      # Contains node matchers for common FactoryBot DSL.
      module Language
        extend RuboCop::NodePattern::Macros

        # @!method factory_bot?(node)
        def_node_matcher :factory_bot?, <<~PATTERN
          (const {nil? cbase} {:FactoryGirl :FactoryBot})
        PATTERN
      end
    end
  end
end

Version data entries

17 entries across 13 versions & 2 rubygems

Version Path
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rubocop-rspec-2.12.1/lib/rubocop/rspec/factory_bot/language.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rubocop-rspec-2.13.1/lib/rubocop/rspec/factory_bot/language.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rubocop-rspec-2.9.0/lib/rubocop/rspec/factory_bot/language.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-rspec-2.12.1/lib/rubocop/rspec/factory_bot/language.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-rspec-2.13.1/lib/rubocop/rspec/factory_bot/language.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-rspec-2.9.0/lib/rubocop/rspec/factory_bot/language.rb
rubocop-rspec-2.13.2 lib/rubocop/rspec/factory_bot/language.rb
rubocop-rspec-2.13.1 lib/rubocop/rspec/factory_bot/language.rb
rubocop-rspec-2.13.0 lib/rubocop/rspec/factory_bot/language.rb
rubocop-rspec-2.12.1 lib/rubocop/rspec/factory_bot/language.rb
rubocop-rspec-2.12.0 lib/rubocop/rspec/factory_bot/language.rb
rubocop-rspec-2.11.1 lib/rubocop/rspec/factory_bot/language.rb
rubocop-rspec-2.11.0 lib/rubocop/rspec/factory_bot/language.rb
rubocop-rspec-2.10.0 lib/rubocop/rspec/factory_bot/language.rb
rubocop-rspec-2.9.0 lib/rubocop/rspec/factory_bot/language.rb
rubocop-rspec-2.8.0 lib/rubocop/rspec/factory_bot/language.rb
rubocop-rspec-2.7.0 lib/rubocop/rspec/factory_bot/language.rb