Sha256: b5d759a89dfbcb62db9d9600b81a4485042b351da27c3b5f07c46d97aa14ef99

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

shared_context "product is ordered as individual and within a bundle" do
  let(:order) { create(:order_with_line_items) }
  let(:parts) { (1..3).map { create(:variant) } }

  let(:bundle_variant) { order.variants.first }
  let(:bundle) { bundle_variant.product }

  let(:common_product) { order.variants.last }

  before do
    bundle.parts << [parts, common_product]
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
solidus_product_bundle-1.0.1 spec/support/shared_contexts/order_with_bundle.rb
solidus_product_bundle-1.0.0 spec/support/shared_contexts/order_with_bundle.rb
solidus_product_assembly-1.0.0 spec/support/shared_contexts/order_with_bundle.rb