Sha256: b8bd51bf372689e083594eed25226cd35f96028f38c20aeef23f3974ab7ba595
Contents?: true
Size: 874 Bytes
Versions: 23
Compression:
Stored size: 874 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module RSpec module FactoryBot # @!parse # # Always declare attribute values as blocks. # # # # @example # # # bad # # kind [:active, :rejected].sample # # # # # good # # kind { [:active, :rejected].sample } # # # # # bad # # closed_at 1.day.from_now # # # # # good # # closed_at { 1.day.from_now } # # # # # bad # # count 1 # # # # # good # # count { 1 } # # # class AttributeDefinedStatically < ::RuboCop::Cop::Base; end AttributeDefinedStatically = ::RuboCop::Cop::FactoryBot::AttributeDefinedStatically end end end end
Version data entries
23 entries across 23 versions & 4 rubygems