Sha256: 10e15821f1c70cb0441273fff91766f2efc4c50ef706316ad553b4fc3382da79
Contents?: true
Size: 897 Bytes
Versions: 23
Compression:
Stored size: 897 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module RSpec module FactoryBot # @!parse # # Use string value when setting the class attribute explicitly. # # # # This cop would promote faster tests by lazy-loading of # # application files. Also, this could help you suppress potential # # bugs in combination with external libraries by avoiding a preload # # of application files from the factory files. # # # # @example # # # bad # # factory :foo, class: Foo do # # end # # # # # good # # factory :foo, class: 'Foo' do # # end # # # class FactoryClassName < ::RuboCop::Cop::Base; end FactoryClassName = ::RuboCop::Cop::FactoryBot::FactoryClassName end end end end
Version data entries
23 entries across 23 versions & 4 rubygems