summaryrefslogtreecommitdiff
path: root/lib/solidus_subscriptions/testing_support
diff options
context:
space:
mode:
authorBrendan Deere <brendan.g.deere@gmail.com>2016-12-21 13:13:01 -0800
committerBrendan Deere <brendan@stembolt.com>2017-01-06 14:35:58 -0800
commitff309707ac9f23b92a19e2ce194773c6125cd97b (patch)
treec8b681c53e98388ff4d065442f1b21c70e1950cb /lib/solidus_subscriptions/testing_support
parentd73e7ee71280974f009ff91dee94cc56cab9d133 (diff)
Remove root order references
The subscription must always have an associated user. use the ship address and last default credit cards from the users. And not from the root order which is deprecated
Diffstat (limited to 'lib/solidus_subscriptions/testing_support')
-rw-r--r--lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb b/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb
index 12c3b18..d434d2a 100644
--- a/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb
+++ b/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb
@@ -4,7 +4,7 @@ FactoryGirl.define do
user do
ccs = build_list(:credit_card, 1, gateway_customer_profile_id: 'BGS-123', default: true)
- build :user, credit_cards: ccs
+ build :user, :subscription_user, credit_cards: ccs
end
trait :with_line_item do