Sha256: 19d017255e96f61636223be54d90b88a2b1df1fde6a163a2d3f193ed73c2f5d4

Contents?: true

Size: 331 Bytes

Versions: 23

Compression:

Stored size: 331 Bytes

Contents

require 'spec_helper'

module Spree
  module Calculator::Shipping
    describe FlatRate, type: :model do
      subject { Calculator::Shipping::FlatRate.new(preferred_amount: 4.00) }

      it 'always returns the same rate' do
        expect(subject.compute(build(:stock_package_fulfilled))).to eql 4.00
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
solidus_core-2.0.3 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-1.4.2 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-1.3.2 spec/models/spree/calculator/shipping/flat_rate_spec.rb
spree_core-3.3.0.rc1 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-2.0.2 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-1.4.1 spec/models/spree/calculator/shipping/flat_rate_spec.rb
spree_core-3.2.1 spec/models/spree/calculator/shipping/flat_rate_spec.rb
spree_core-3.2.0 spec/models/spree/calculator/shipping/flat_rate_spec.rb
spree_core-3.2.0.rc3 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-2.0.1 spec/models/spree/calculator/shipping/flat_rate_spec.rb
spree_core-3.2.0.rc2 spec/models/spree/calculator/shipping/flat_rate_spec.rb
spree_core-3.2.0.rc1 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-2.0.0 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-1.4.0 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-2.0.0.rc1 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-1.4.0.rc1 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-2.0.0.beta1 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-1.4.0.beta1 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-1.3.1 spec/models/spree/calculator/shipping/flat_rate_spec.rb
solidus_core-1.3.0 spec/models/spree/calculator/shipping/flat_rate_spec.rb