Sha256: e87a3f58596ebfeb2296eeb281f4c58f6f0c9590036a8311539f25eb6787661f

Contents?: true

Size: 641 Bytes

Versions: 11

Compression:

Stored size: 641 Bytes

Contents

require 'rails_helper'
require 'spree/testing_support/factories/product_factory'

RSpec.describe 'product factory' do
  let(:factory_class) { Spree::Product }

  describe 'plain product' do
    let(:factory) { :product }

    it_behaves_like 'a working factory'
  end

  describe 'base product' do
    let(:factory) { :base_product }

    it_behaves_like 'a working factory'
  end

  describe 'custom product' do
    let(:factory) { :custom_product }

    it_behaves_like 'a working factory'
  end

  describe 'product with option types' do
    let(:factory) { :product_with_option_types }

    it_behaves_like 'a working factory'
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
solidus_core-2.5.2 spec/lib/spree/core/testing_support/factories/product_factory_spec.rb
solidus_core-2.5.1 spec/lib/spree/core/testing_support/factories/product_factory_spec.rb
solidus_core-2.5.0 spec/lib/spree/core/testing_support/factories/product_factory_spec.rb
solidus_core-2.5.0.rc1 spec/lib/spree/core/testing_support/factories/product_factory_spec.rb
solidus_core-2.5.0.beta2 spec/lib/spree/core/testing_support/factories/product_factory_spec.rb
solidus_core-2.5.0.beta1 spec/lib/spree/core/testing_support/factories/product_factory_spec.rb
solidus_core-2.4.2 spec/lib/spree/core/testing_support/factories/product_factory_spec.rb
solidus_core-2.4.1 spec/lib/spree/core/testing_support/factories/product_factory_spec.rb
solidus_core-2.4.0 spec/lib/spree/core/testing_support/factories/product_factory_spec.rb
solidus_core-2.4.0.rc1 spec/lib/spree/core/testing_support/factories/product_factory_spec.rb
solidus_core-2.4.0.beta1 spec/lib/spree/core/testing_support/factories/product_factory_spec.rb