Sha256: aead19a1e0474e822d0d933ad4da957df4bcc84ce2f01fbdf7b93baba635236f
Contents?: true
Size: 752 Bytes
Versions: 14
Compression:
Stored size: 752 Bytes
Contents
# frozen_string_literal: true module RuboCop module FactoryBot # Contains node matchers for common factory_bot DSL. module Language extend RuboCop::NodePattern::Macros METHODS = %i[ attributes_for attributes_for_list attributes_for_pair build build_list build_pair build_stubbed build_stubbed_list build_stubbed_pair create create_list create_pair generate generate_list null null_list null_pair ].to_set.freeze # @!method factory_bot?(node) def_node_matcher :factory_bot?, <<~PATTERN (const {nil? cbase} {:FactoryGirl :FactoryBot}) PATTERN end end end
Version data entries
14 entries across 14 versions & 5 rubygems