Sha256: 9a54fa114142329949cf3095712dfeb2b8a03964857747eaaea69af3f9276103
Contents?: true
Size: 463 Bytes
Versions: 3
Compression:
Stored size: 463 Bytes
Contents
require 'spec_helper' describe Carousel::Shipping do describe '.map' do context 'with the code within the shipping map' do it 'returns the value for the given key' do expect(Carousel::Shipping.map("EU:standard")).to eq("ECONOMY") end end context 'with the code not in the shipping map' do it 'returns the given code' do expect(Carousel::Shipping.map("first-class")).to eq("first-class") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
carousel-ruby-api-0.0.6 | spec/lib/shipping_spec.rb |
carousel-ruby-api-0.0.5 | spec/lib/shipping_spec.rb |
carousel-ruby-api-0.0.4 | spec/lib/shipping_spec.rb |