diff options
author | Brendan Deere <brendan@stembolt.com> | 2017-01-13 11:56:13 -0800 |
---|---|---|
committer | Brendan <brendan@stembolt.com> | 2017-02-03 10:08:09 -0800 |
commit | b01c9d05dcb4e4e5d82577e3b055486020ce4d33 (patch) | |
tree | ba23a4b492cc338335f98f37fc51c290fb0176a6 /lib/solidus_subscriptions/testing_support | |
parent | 9f3a33f2bc7bf76801fb3e2db68e4b3906647b9c (diff) |
Add Subscription configuration values
:end_date, :interval_length and :interval_units are stored on the
subscription line items before the order is completed.
Once the order is completed we want a canonical source for these values.
These values will now be stored on the subscription itself, once it is
created
Diffstat (limited to 'lib/solidus_subscriptions/testing_support')
-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 61baa33..222f9ef 100644 --- a/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb +++ b/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb @@ -1,6 +1,8 @@ FactoryGirl.define do factory :subscription, class: 'SolidusSubscriptions::Subscription' do store + interval_length 1 + interval_units :month user do ccs = build_list(:credit_card, 1, gateway_customer_profile_id: 'BGS-123', default: true) |