Sha256: 776af1347a18fc2210decfbc9ecebe03e482d8b57ae0030fba5399d18cf43762
Contents?: true
Size: 919 Bytes
Versions: 4
Compression:
Stored size: 919 Bytes
Contents
require 'spec_helper' describe Spree::Calculator::Shipping::PAC do before do @pac = Spree::Calculator::Shipping::PAC.new end it_behaves_like 'correios calculator' it 'should have a description' do expect(@pac.description).to eq('PAC') end context 'without a token and password' do it 'should have a shipping method of :pac' do expect(@pac.shipping_method).to eq(:pac) end it 'should have a shipping code of 41106' do expect(@pac.shipping_code).to eq(41106) end end context 'with a token and password' do before do @pac.preferred_token = 'some token' @pac.preferred_password = 'some password' end it 'should have a shipping method of :pac_com_contrato' do expect(@pac.shipping_method).to eq(:pac_com_contrato) end it 'should have a shipping code of 41068' do expect(@pac.shipping_code).to eq(41068) end end end
Version data entries
4 entries across 4 versions & 1 rubygems