diff options
author | Jared Norman <jared@super.gd> | 2019-02-05 10:36:04 -0800 |
---|---|---|
committer | Jared Norman <jared@super.gd> | 2019-02-05 10:36:04 -0800 |
commit | a238148b1d66b9d5377b9c840b00b9e2ea4d4d7e (patch) | |
tree | 01f6616be059765034609d1ee0988c92833da815 /spec | |
parent | c3b0d69b34955affc1f9a331447ce2baa8f3931a (diff) |
Move exception handler configuration
Diffstat (limited to 'spec')
-rw-r--r-- | spec/super_good/solidus_taxjar/tax_calculator_spec.rb | 2 |
1 files changed, 1 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 84f9664..e5c0a01 100644 --- a/spec/super_good/solidus_taxjar/tax_calculator_spec.rb +++ b/spec/super_good/solidus_taxjar/tax_calculator_spec.rb @@ -104,7 +104,7 @@ RSpec.describe ::SuperGood::SolidusTaxJar::TaxCalculator do end it "calls the configured error handler" do - expect(described_class.exception_handler).to receive(:call) do |e| + expect(SuperGood::SolidusTaxJar.exception_handler).to receive(:call) do |e| expect(e).to be_a StandardError expect(e.message).to eq "A bad thing happened." end |