summaryrefslogtreecommitdiff
path: root/spec/super_good
diff options
context:
space:
mode:
authorJuan Carlos Ruiz <JuanCrg90@gmail.com>2019-03-12 14:11:49 -0600
committerJuan Carlos Ruiz <JuanCrg90@gmail.com>2019-03-12 16:20:46 -0600
commit9f48531b513be0f233eddbdfce8be2e071f3539a (patch)
treead50e6c3c6150dbfa80601fc9449250b8d19478e /spec/super_good
parent9a83ec4cda37760aad82373dc422cadbb33eddfe (diff)
Add incomplete_address? check method
Solidus has deprecated the `empty?` method on https://github.com/solidusio/solidus/pull/1686 . This adds a private `incomplete_address?` method for avoid future problems and remove the deprecation warning in projects that uses this gem.
Diffstat (limited to 'spec/super_good')
-rw-r--r--spec/super_good/solidus_taxjar/tax_calculator_spec.rb12
1 files changed, 12 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
index a13f564..0d390ec 100644
--- a/spec/super_good/solidus_taxjar/tax_calculator_spec.rb
+++ b/spec/super_good/solidus_taxjar/tax_calculator_spec.rb
@@ -78,6 +78,10 @@ RSpec.describe ::SuperGood::SolidusTaxJar::TaxCalculator do
let(:address) do
::Spree::Address.new(
first_name: "Ronnie James",
+ zipcode: "90210",
+ address1: "9900 Wilshire Blvd",
+ city: "Beverly Hills",
+ state_name: "California",
country: ::Spree::Country.new(iso: "US")
)
end
@@ -95,6 +99,10 @@ RSpec.describe ::SuperGood::SolidusTaxJar::TaxCalculator do
let(:address) do
::Spree::Address.new(
first_name: "Ronnie James",
+ zipcode: "90210",
+ address1: "9900 Wilshire Blvd",
+ city: "Beverly Hills",
+ state_name: "California",
country: ::Spree::Country.new(iso: "US")
)
end
@@ -123,6 +131,10 @@ RSpec.describe ::SuperGood::SolidusTaxJar::TaxCalculator do
let(:address) do
::Spree::Address.new(
first_name: "Ronnie James",
+ zipcode: "90210",
+ address1: "9900 Wilshire Blvd",
+ city: "Beverly Hills",
+ state_name: "California",
country: ::Spree::Country.new(iso: "US")
)
end