Sha256: d9235f164f6f4c98f031a9466d209008755ef8c7ba4ebe33da2f3726e9959a48
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
FactoryGirl.define do factory :subscription_line_item, class: 'SolidusSubscriptions::LineItem' do subscribable_id { create(:variant, subscribable: true).id } quantity 1 interval_length 1 interval_units :month association :spree_line_item, factory: :line_item trait :with_subscription do transient do subscription_traits [] end subscription { build :subscription, *subscription_traits } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_subscriptions-alpha-0.0.4 | lib/solidus_subscriptions/testing_support/factories/line_item_factory.rb |