Sha256: 97c4ca820bcec07a0ab02fa374f101b568a5550f42f9d0f392b3ad24ffca84c4

Contents?: true

Size: 311 Bytes

Versions: 6

Compression:

Stored size: 311 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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_core-3.0.10 spec/models/spree/returns_calculator_spec.rb
spree_core-3.0.9 spec/models/spree/returns_calculator_spec.rb
spree_core-3.0.8 spec/models/spree/returns_calculator_spec.rb
spree_core-3.0.7 spec/models/spree/returns_calculator_spec.rb
spree_core-3.0.6.1 spec/models/spree/returns_calculator_spec.rb
spree_core-3.0.6 spec/models/spree/returns_calculator_spec.rb