diff options
-rw-r--r-- | spec/super_good/solidus_taxjar_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/super_good/solidus_taxjar_spec.rb b/spec/super_good/solidus_taxjar_spec.rb index 6236b2f..7fe0dee 100644 --- a/spec/super_good/solidus_taxjar_spec.rb +++ b/spec/super_good/solidus_taxjar_spec.rb @@ -73,5 +73,15 @@ RSpec.describe SuperGood::SolidusTaxjar do let(:spree_line_item) { Spree::LineItem.new } it { is_expected.to eq "Sales Tax" } end + + describe ".shipping_calculator" do + subject { described_class.shipping_calculator.call(order) } + + let(:order) { instance_double(Spree::Order, shipment_total: 10) } + + it "returns the shipment total" do + expect(subject).to eq(10) + end + end end end |