Sha256: 663bc0f908b02fccbe0121bff3638c1b115c6c0082d540af0a7d2811eebc4940

Contents?: true

Size: 329 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

Version Path
spree_core-3.3.0.rc1 spec/models/spree/returns_calculator_spec.rb
spree_core-3.2.1 spec/models/spree/returns_calculator_spec.rb
spree_core-3.2.0 spec/models/spree/returns_calculator_spec.rb
spree_core-3.2.0.rc3 spec/models/spree/returns_calculator_spec.rb
spree_core-3.2.0.rc2 spec/models/spree/returns_calculator_spec.rb
spree_core-3.2.0.rc1 spec/models/spree/returns_calculator_spec.rb