summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-01-09 17:25:23 -0800
committerJared Norman <jared@super.gd>2019-01-09 17:25:23 -0800
commit7d087214aaf111dc9ca20ff372c96e10541a418f (patch)
treed42a4c93eaf821628e40fd03856ce87611d0fe4f
parent59465ffdaa0e825993fa69dae0af28ee476a06c5 (diff)
Rename method
-rw-r--r--lib/super_good/solidus_taxjar/api.rb2
-rw-r--r--spec/super_good/solidus_taxjar/api_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/super_good/solidus_taxjar/api.rb b/lib/super_good/solidus_taxjar/api.rb
index a89e8d3..a6b425c 100644
--- a/lib/super_good/solidus_taxjar/api.rb
+++ b/lib/super_good/solidus_taxjar/api.rb
@@ -12,7 +12,7 @@ module SuperGood
@taxjar_client = taxjar_client
end
- def order_tax_for(order)
+ def tax_for(order)
taxjar_client.tax_for_order order_params(order)
end
diff --git a/spec/super_good/solidus_taxjar/api_spec.rb b/spec/super_good/solidus_taxjar/api_spec.rb
index cd455dc..90cd2d1 100644
--- a/spec/super_good/solidus_taxjar/api_spec.rb
+++ b/spec/super_good/solidus_taxjar/api_spec.rb
@@ -1,8 +1,8 @@
require 'spec_helper'
RSpec.describe SuperGood::SolidusTaxJar::API do
- describe "#order_tax_for" do
- subject { api.order_tax_for order }
+ describe "#tax_for" do
+ subject { api.tax_for order }
let(:api) do
described_class.new(taxjar_client: dummy_client)