diff options
author | Jared Norman <jared@super.gd> | 2019-01-09 17:25:23 -0800 |
---|---|---|
committer | Jared Norman <jared@super.gd> | 2019-01-09 17:25:23 -0800 |
commit | 7d087214aaf111dc9ca20ff372c96e10541a418f (patch) | |
tree | d42a4c93eaf821628e40fd03856ce87611d0fe4f | |
parent | 59465ffdaa0e825993fa69dae0af28ee476a06c5 (diff) |
Rename method
-rw-r--r-- | lib/super_good/solidus_taxjar/api.rb | 2 | ||||
-rw-r--r-- | spec/super_good/solidus_taxjar/api_spec.rb | 4 |
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) |