Sha256: fa0fabab7922b9130d82657955eb2fb1bb3c6111f3ea3984640e51884b99ae8f
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 Bytes
Contents
FactoryGirl.define do factory :installment, class: 'SolidusSubscriptions::Installment' do transient { subscription_traits [] } subscription { build :subscription, :with_line_item, *subscription_traits } trait :failed do actionable_date { Time.zone.yesterday } details { build_list(:installment_detail, 1, installment: @instance) } end trait :success do transient do order { create :completed_order_with_totals } end details do build_list(:installment_detail, 1, :success, installment: @instance, order: order) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_subscriptions-alpha-0.0.4 | lib/solidus_subscriptions/testing_support/factories/installment_factory.rb |