Sha256: f14fbe1663ecef80d65600a113198880defff95407f497a7eef5d4c8b5ffaa46

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

FactoryGirl.modify do
  factory :line_item do
    trait :with_subscription_line_items do
      transient do
        n_subscription_line_items 1
      end

      subscription_line_items do
        build_list(
          :subscription_line_item,
          n_subscription_line_items,
          spree_line_item: @instance
        )
      end
    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/spree/line_item_factory.rb