Sha256: 27074c8872d85335ad6b712b1f06467fe9f20d500a7c9379b09b65d0f7d50723

Contents?: true

Size: 580 Bytes

Versions: 9

Compression:

Stored size: 580 Bytes

Contents

FactoryBot.define do
  factory :user, class: Class.new(OpenStruct) do
    in_renewal false
    member_type 'P'
    renew_type 'R'
    status 'A'
    has_outstanding_balance false
    member? true

    trait :non_member do
      member? false
    end

    trait :with_accr do
      renew_type 'A'
    end

    trait :with_mpp do
      renew_type 'M'
    end

    trait :in_renewal do
      in_renewal true
    end

    trait :in_renewal_late do
      in_renewal true
      status 'AL'
    end

    trait :outstanding_balance do
      has_outstanding_balance true
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ama_layout-9.5.3 spec/factories/users.rb
ama_layout-9.5.2 spec/factories/users.rb
ama_layout-9.5.1 spec/factories/users.rb
ama_layout-9.5.0 spec/factories/users.rb
ama_layout-9.4.1 spec/factories/users.rb
ama_layout-9.4.0 spec/factories/users.rb
ama_layout-9.3.0 spec/factories/users.rb
ama_layout-9.2.0 spec/factories/users.rb
ama_layout-9.1.0 spec/factories/users.rb