Sha256: 746145ad67864eb0d8ec729b68376f81cebbe7859e84ef99e84259489ec8d41a

Contents?: true

Size: 659 Bytes

Versions: 48

Compression:

Stored size: 659 Bytes

Contents

# frozen_string_literal: true

require 'rails_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

48 entries across 48 versions & 2 rubygems

Version Path
solidus_core-2.10.5 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.10.3 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.10.2 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.9.6 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.8.6 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.10.1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.9.5 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.10.0 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.9.4 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.6.6 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.7.4 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.8.5 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.9.3 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.9.2 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.10.0.beta1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.7.3 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.6.5 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.9.1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.9.0 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-2.9.0.rc.1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb