Sha256: 39d4ef7fb5c07834a53b35f5e98e5f8662b64438fdc8f6655c9f25f72d5e99e9

Contents?: true

Size: 451 Bytes

Versions: 32

Compression:

Stored size: 451 Bytes

Contents

require 'spec_helper'

module Spree
  module Stock
    module Splitter
      describe Base, type: :model do
        let(:packer) { build(:stock_packer) }

        it 'continues to splitter chain' do
          splitter1 = Base.new(packer)
          splitter2 = Base.new(packer, splitter1)
          packages = []

          expect(splitter1).to receive(:split).with(packages)
          splitter2.split(packages)
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
solidus_core-2.3.1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.2.2 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.1.1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.0.3 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-1.4.2 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-1.3.2 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.3.0 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.3.0.rc3 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.3.0.rc2 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.3.0.rc1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.3.0.beta1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.0.2 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-1.4.1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.2.1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.2.0 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.2.0.rc1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.2.0.beta1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.1.0 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.1.0.rc1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.0.1 spec/models/spree/stock/splitter/base_spec.rb