diff options
author | Jared Norman <jared@super.gd> | 2019-01-21 18:13:04 -0800 |
---|---|---|
committer | Jared Norman <jared@super.gd> | 2019-01-21 18:13:04 -0800 |
commit | d5b84c70cfad6bcb98bee422ce2865dbf8ae386f (patch) | |
tree | 7bbc38161af1fe51a578e474caf0e6d392894329 /spec | |
parent | 9c2d4462f4d8626f95fb21d2a920ad7b087d4254 (diff) |
Cache requests for ten minutes
Diffstat (limited to 'spec')
-rw-r--r-- | spec/super_good/solidus_taxjar/tax_calculator_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/super_good/solidus_taxjar/tax_calculator_spec.rb b/spec/super_good/solidus_taxjar/tax_calculator_spec.rb index bd74292..875f428 100644 --- a/spec/super_good/solidus_taxjar/tax_calculator_spec.rb +++ b/spec/super_good/solidus_taxjar/tax_calculator_spec.rb @@ -72,7 +72,12 @@ RSpec.describe ::SuperGood::SolidusTaxJar::TaxCalculator do end context "when the order has a non-empty tax address" do - let(:address) { ::Spree::Address.new(first_name: "Ronnie James") } + let(:address) do + ::Spree::Address.new( + first_name: "Ronnie James", + country: ::Spree::Country.new(iso: "US") + ) + end before do allow(dummy_api).to receive(:tax_for).with(order).and_return( |