Sha256: 39e67b7d86ab9b0cfe79c32d5924f02eeadff93e8d0c6adeeec32cc129b2b2ab

Contents?: true

Size: 328 Bytes

Versions: 32

Compression:

Stored size: 328 Bytes

Contents

require 'spec_helper'

module Spree
  describe ReturnsCalculator, type: :model do
    let(:return_item) { build(:return_item) }
    subject { ReturnsCalculator.new }

    it 'compute_shipment must be overridden' do
      expect {
        subject.compute(return_item)
      }.to raise_error NotImplementedError
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
solidus_core-2.1.0.beta1 spec/models/spree/returns_calculator_spec.rb
solidus_core-2.0.0 spec/models/spree/returns_calculator_spec.rb
solidus_core-1.4.0 spec/models/spree/returns_calculator_spec.rb
solidus_core-2.0.0.rc1 spec/models/spree/returns_calculator_spec.rb
solidus_core-1.4.0.rc1 spec/models/spree/returns_calculator_spec.rb
solidus_core-2.0.0.beta1 spec/models/spree/returns_calculator_spec.rb
solidus_core-1.4.0.beta1 spec/models/spree/returns_calculator_spec.rb
solidus_core-1.3.1 spec/models/spree/returns_calculator_spec.rb
solidus_core-1.3.0 spec/models/spree/returns_calculator_spec.rb
solidus_core-1.3.0.rc2 spec/models/spree/returns_calculator_spec.rb
solidus_core-1.3.0.rc1 spec/models/spree/returns_calculator_spec.rb
solidus_core-1.3.0.beta1 spec/models/spree/returns_calculator_spec.rb