Sha256: 2e2ba3382d35279af2688cb678a4db37aee21e9eb70c4235b5f1c24c5092be01
Contents?: true
Size: 846 Bytes
Versions: 10
Compression:
Stored size: 846 Bytes
Contents
# frozen_string_literal: true 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 } menu_key { 'member' } trait :non_member do member? { false } menu_key { 'non_member' } end trait :with_accr do renew_type { 'A' } end trait :with_mpp do renew_type { 'M' } end trait :in_renewal do in_renewal { true } menu_key { 'member_renewal' } end trait :in_renewal_late do in_renewal { true } status { 'AL' } menu_key { 'member_renewal_late' } end trait :outstanding_balance do has_outstanding_balance { true } menu_key { 'member_outstanding_balance' } end end end
Version data entries
10 entries across 10 versions & 1 rubygems