summaryrefslogtreecommitdiff
path: root/lib/solidus_subscriptions
diff options
context:
space:
mode:
authorBrendan Deere <brendan@stembolt.com>2016-10-04 10:49:50 -0700
committerBrendan Deere <brendan@stembolt.com>2016-10-04 14:03:56 -0700
commit66f543038ce32d534211ff6b1be30e1be9418268 (patch)
tree6a0368c9f1949ba964956f963c9306f78959ef27 /lib/solidus_subscriptions
parentf31faa8f1a241024be954c77f87ae4d7ffb6d580 (diff)
Set the Completed at time for fulfilled installments
the completed_order_with_totals factory doesnt set the completed_at time
Diffstat (limited to 'lib/solidus_subscriptions')
-rw-r--r--lib/solidus_subscriptions/testing_support/factories/installment_factory.rb2
1 files changed, 1 insertions, 1 deletions
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