Sha256: d8243b8e4088b06505909c38f74b4c78c88b3a3ab9898bcba639e50fb13785cd

Contents?: true

Size: 627 Bytes

Versions: 32

Compression:

Stored size: 627 Bytes

Contents

require 'spec_helper'
require 'spree/testing_support/factories/stock_package_factory'

RSpec.describe 'stock package factory' do
  let(:factory_class) { Spree::Stock::Package }

  describe 'plain stock package' do
    let(:factory) { :stock_package }

    it "builds successfully" do
      expect(build(factory)).to be_a(factory_class)
    end

    # No test for .create, as it's a PORO
  end

  describe 'fulfilled stock package' do
    let(:factory) { :stock_package_fulfilled }

    it "builds successfully" do
      expect(build(factory)).to be_a(factory_class)
    end

    # No test for .create, as it's a PORO
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
solidus_core-2.3.1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.2.2 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.1.1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.0.3 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-1.4.2 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-1.3.2 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.3.0 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.3.0.rc3 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.3.0.rc2 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.3.0.rc1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.3.0.beta1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.0.2 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-1.4.1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.2.1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.2.0 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.2.0.rc1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.2.0.beta1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.1.0 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.1.0.rc1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.0.1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb