From b01c9d05dcb4e4e5d82577e3b055486020ce4d33 Mon Sep 17 00:00:00 2001 From: Brendan Deere Date: Fri, 13 Jan 2017 11:56:13 -0800 Subject: 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 --- .../testing_support/factories/subscription_factory.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/solidus_subscriptions/testing_support') 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) -- cgit v1.2.3