Sha256: 5a69b80a490fd4a09fdca544745f9b8f561f168185bce027dc2bd901e0abd4e1

Contents?: true

Size: 625 Bytes

Versions: 7

Compression:

Stored size: 625 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

7 entries across 7 versions & 1 rubygems

Version Path
solidus_core-1.2.3 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-1.2.2 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-1.2.1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-1.2.0 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-1.2.0.rc2 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-1.2.0.rc1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb
solidus_core-1.2.0.beta1 spec/lib/spree/core/testing_support/factories/stock_package_factory_spec.rb