From 66f543038ce32d534211ff6b1be30e1be9418268 Mon Sep 17 00:00:00 2001 From: Brendan Deere Date: Tue, 4 Oct 2016 10:49:50 -0700 Subject: Set the Completed at time for fulfilled installments the completed_order_with_totals factory doesnt set the completed_at time --- .../testing_support/factories/installment_factory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/solidus_subscriptions/testing_support') diff --git a/lib/solidus_subscriptions/testing_support/factories/installment_factory.rb b/lib/solidus_subscriptions/testing_support/factories/installment_factory.rb index ec10e22..ced5886 100644 --- a/lib/solidus_subscriptions/testing_support/factories/installment_factory.rb +++ b/lib/solidus_subscriptions/testing_support/factories/installment_factory.rb @@ -9,7 +9,7 @@ FactoryGirl.define do end trait :success do - association :order, factory: :completed_order_with_totals + order { create :completed_order_with_totals } details { build_list(:installment_detail, 1, :success, installment: @instance) } end end -- cgit v1.2.3