diff options
author | Brendan Deere <brendan.g.deere@gmail.com> | 2016-12-21 08:01:20 -0800 |
---|---|---|
committer | Brendan Deere <brendan@stembolt.com> | 2017-01-06 14:35:58 -0800 |
commit | d28bb0da1249e784907e75e5997de2e1a506b420 (patch) | |
tree | 493d570f64aeb9abded41998f16d188216d5cf52 /lib | |
parent | 0f48d548b978780f0ff54635056f60ffb7cfa62b (diff) |
Subscriptions belong to a store
Given that not all subscriptions will have a root order (example: a
subscription created by an admin in the admin interface)
We should be tracking which store a subscription belongs to on the
subscription itself
Diffstat (limited to 'lib')
-rw-r--r-- | lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb b/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb index e4f3cdc..12c3b18 100644 --- a/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb +++ b/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb @@ -1,5 +1,7 @@ FactoryGirl.define do factory :subscription, class: 'SolidusSubscriptions::Subscription' do + store + user do ccs = build_list(:credit_card, 1, gateway_customer_profile_id: 'BGS-123', default: true) build :user, credit_cards: ccs |