Sha256: 1631332ba490c71ce3786dca304c1a1d16f5a27a61d58d185eca475f984e691e

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

module Spree
  module ActiveShipping
    # Bogus carrier useful for testing.  For some reasons the plugin version of this class does not work
    # properly (it fails to return a RateResponse)
    class BogusCarrier < ActiveMerchant::Shipping::Carrier
      def name
        "BogusCarrier"
      end

      def find_rates(origin, destination, packages, options = {})
        RateResponse.new(true, "Bogus rate response.")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_active_shipping-1.0.0 spec/lib/spree/bogus_carrier.rb