summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-01-21 18:13:04 -0800
committerJared Norman <jared@super.gd>2019-01-21 18:13:04 -0800
commitd5b84c70cfad6bcb98bee422ce2865dbf8ae386f (patch)
tree7bbc38161af1fe51a578e474caf0e6d392894329 /spec
parent9c2d4462f4d8626f95fb21d2a920ad7b087d4254 (diff)
Cache requests for ten minutes
Diffstat (limited to 'spec')
-rw-r--r--spec/super_good/solidus_taxjar/tax_calculator_spec.rb7
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(