summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/super_good/solidus_taxjar/tax_calculator_spec.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/super_good/solidus_taxjar/tax_calculator_spec.rb b/spec/super_good/solidus_taxjar/tax_calculator_spec.rb
new file mode 100644
index 0000000..eaf810c
--- /dev/null
+++ b/spec/super_good/solidus_taxjar/tax_calculator_spec.rb
@@ -0,0 +1,21 @@
+require 'spec_helper'
+
+RSpec.describe SuperGood::SolidusTaxJar::TaxCalculator do
+ describe "#calculate" do
+ subject { calculator.calculate }
+
+ let(:calculator) { described_class.new(order) }
+
+ let(:order) do
+ Spree::Order.new(
+ id: 10
+ )
+ end
+
+ it "returns the taxes" do
+ expect(subject.order_id).to eq order.id
+ expect(subject.line_item_taxes).to be_empty
+ expect(subject.shipment_taxes).to be_empty
+ end
+ end
+end