summaryrefslogtreecommitdiff
path: root/spec/super_good/solidus_taxjar/api_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/super_good/solidus_taxjar/api_spec.rb')
-rw-r--r--spec/super_good/solidus_taxjar/api_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/super_good/solidus_taxjar/api_spec.rb b/spec/super_good/solidus_taxjar/api_spec.rb
index 94f214d..df46a11 100644
--- a/spec/super_good/solidus_taxjar/api_spec.rb
+++ b/spec/super_good/solidus_taxjar/api_spec.rb
@@ -202,4 +202,19 @@ RSpec.describe SuperGood::SolidusTaxjar::Api do
it { is_expected.to eq({some_kind_of: "response"}) }
end
+
+ describe "#nexus_regions" do
+ subject { api.nexus_regions }
+
+ let(:api) { described_class.new(taxjar_client: dummy_client) }
+ let(:dummy_client) { instance_double ::Taxjar::Client }
+
+ before do
+ allow(dummy_client)
+ .to receive(:nexus_regions)
+ .and_return({some_kind_of: "response"})
+ end
+
+ it { is_expected.to eq({some_kind_of: "response"}) }
+ end
end