tax_cloud 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -10
- data/lib/tax_cloud/address.rb +3 -1
- data/lib/tax_cloud/version.rb +1 -1
- data/test/cassettes/verify_bad_address.yml +772 -769
- data/test/cassettes/verify_good_address_with_rdi.yml +1650 -0
- data/test/test_address.rb +15 -0
- metadata +3 -2
data/test/test_address.rb
CHANGED
@@ -41,6 +41,21 @@ class TestAddress < TestSetup
|
|
41
41
|
assert_equal 'NY', verified.state
|
42
42
|
assert_equal '10001', verified.zip5
|
43
43
|
assert_equal '3502', verified.zip4
|
44
|
+
assert_nil verified.rdi
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_verify_good_address_with_rdi
|
49
|
+
VCR.use_cassette('verify good address with rdi') do
|
50
|
+
verified = @address.verify
|
51
|
+
assert_instance_of TaxCloud::Address, verified
|
52
|
+
assert_equal '888 6th Ave', verified.address1
|
53
|
+
assert_nil verified.address2
|
54
|
+
assert_equal 'New York', verified.city
|
55
|
+
assert_equal 'NY', verified.state
|
56
|
+
assert_equal '10001', verified.zip5
|
57
|
+
assert_equal '3502', verified.zip4
|
58
|
+
assert_equal 'Commercial', verified.rdi
|
44
59
|
end
|
45
60
|
end
|
46
61
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tax_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Drew Tempelmeyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -140,6 +140,7 @@ files:
|
|
140
140
|
- test/cassettes/returned.yml
|
141
141
|
- test/cassettes/verify_bad_address.yml
|
142
142
|
- test/cassettes/verify_good_address.yml
|
143
|
+
- test/cassettes/verify_good_address_with_rdi.yml
|
143
144
|
- test/helper.rb
|
144
145
|
- test/test_address.rb
|
145
146
|
- test/test_cart_item.rb
|