Sha256: b293d41804377433959b8869fa174dc3fe3db2c2e02bec7fb41e36f67df82a87

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

RSpec.describe SolidusEasypost::ShippingRateCalculator do
  describe '#compute' do
    it 'returns the amount on the EasyPost rate' do
      easypost_rate = EasyPost::Rate.construct_from('rate' => 25.0)

      calculator = described_class.new
      computed_rate = calculator.compute(easypost_rate)

      expect(computed_rate).to eq(25.0)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_easypost-3.0.0 spec/solidus_easypost/shipping_rate_calculator_spec.rb