diff options
Diffstat (limited to 'lib/solidus_subscriptions/testing_support')
-rw-r--r-- | lib/solidus_subscriptions/testing_support/factories/installment_factory.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/solidus_subscriptions/testing_support/factories/installment_factory.rb b/lib/solidus_subscriptions/testing_support/factories/installment_factory.rb index ced5886..281326e 100644 --- a/lib/solidus_subscriptions/testing_support/factories/installment_factory.rb +++ b/lib/solidus_subscriptions/testing_support/factories/installment_factory.rb @@ -9,8 +9,13 @@ FactoryGirl.define do end trait :success do - order { create :completed_order_with_totals } - details { build_list(:installment_detail, 1, :success, installment: @instance) } + 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 |