Sha256: 78f52067de1aca39bc45dde96d8f3940758d274dd2173f11a903f9093178db15

Contents?: true

Size: 455 Bytes

Versions: 32

Compression:

Stored size: 455 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 & 2 rubygems

Version Path
solidus_core-1.2.3 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-1.1.4 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-1.0.7 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.1.5 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.1.4 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.1.3 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.1.2 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.0.10 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.1.1 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.1.0 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.1.0.rc4 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.0.9 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.1.0.rc3 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.1.0.rc2 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.1.0.rc1 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-1.0.6 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.0.8 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-1.2.2 spec/models/spree/stock/splitter/base_spec.rb
spree_core-3.0.7 spec/models/spree/stock/splitter/base_spec.rb
solidus_core-1.2.1 spec/models/spree/stock/splitter/base_spec.rb