Sha256: 106a7cd5203d36846abe5c7a1126b0932fd2db86580499523735602a2cd38bf6

Contents?: true

Size: 581 Bytes

Versions: 16

Compression:

Stored size: 581 Bytes

Contents

FactoryGirl.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

16 entries across 16 versions & 1 rubygems

Version Path
ama_layout-9.0.0 spec/factories/users.rb
ama_layout-8.0.2 spec/factories/users.rb
ama_layout-8.0.1 spec/factories/users.rb
ama_layout-8.0.0 spec/factories/users.rb
ama_layout-7.0.2 spec/factories/users.rb
ama_layout-7.0.1 spec/factories/users.rb
ama_layout-5.12.0 spec/factories/users.rb
ama_layout-7.0.pre spec/factories/users.rb
ama_layout-5.11.0 spec/factories/users.rb
ama_layout-6.10.0.pre spec/factories/users.rb
ama_layout-5.10.0 spec/factories/users.rb
ama_layout-5.9.0 spec/factories/users.rb
ama_layout-5.8.0 spec/factories/users.rb
ama_layout-5.7.0 spec/factories/users.rb
ama_layout-5.6.0 spec/factories/users.rb
ama_layout-5.5.0 spec/factories/users.rb