Sha256: 8294480b8e86ff604dccdcf5fa756b7048815d066bec178b31983ae063c2a6cf
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Spree::ShippingRate do describe '#name' do context 'when the shipping rate has its own name' do it 'returns the name on the shipping rate' do shipping_rate = build_stubbed(:shipping_rate, name: 'USPS Express') expect(shipping_rate.name).to eq('USPS Express') end end context 'when the shipping rate does not have its own name' do it 'returns the name on the shipping method' do shipping_rate = build_stubbed(:shipping_rate, name: nil) expect(shipping_rate.name).to eq(shipping_rate.shipping_method.name) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_easypost-3.0.0 | spec/models/spree/shipping_rate_spec.rb |