Sha256: 32d426c5cbddeabdc16be7971b9d6e6baa27d29e0854142e195878eb493a8bba

Contents?: true

Size: 525 Bytes

Versions: 43

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

module Spree
  module Stock
    module Splitter
      RSpec.describe Base, type: :model do
        let(:stock_location) { mock_model(Spree::StockLocation) }

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

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

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
solidus_core-2.9.6 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.8.6 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.9.5 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.9.4 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.6.6 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.7.4 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.8.5 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.9.3 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.9.2 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.10.0.beta1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.7.3 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.6.5 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.9.1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.9.0 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.9.0.rc.1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.8.4 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.8.3 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.7.2 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.6.4 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-2.8.2 spec/models/spree/stock/splitter/base_spec.rb