diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb | 6 |
1 files changed, 5 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 cdbea1e..87fe75d 100644 --- a/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb +++ b/lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb @@ -20,10 +20,14 @@ FactoryBot.define do line_items { build_list :subscription_line_item, 1, *line_item_traits } end - trait :with_address do + trait :with_shipping_address do association :shipping_address, factory: :address end + trait :with_billing_address do + association :billing_address, factory: :address + end + trait :actionable do with_line_item actionable_date { Time.zone.now.yesterday.beginning_of_minute } |