spec/integration/braintree/address_spec.rb in braintree-3.4.0 vs spec/integration/braintree/address_spec.rb in braintree-4.0.0
- old
+ new
@@ -12,10 +12,11 @@
:company => "Moore Co.",
:street_address => "1811 E Main St",
:extended_address => "Suite 200",
:locality => "Chicago",
:region => "Illinois",
+ :phone_number => "5551231234",
:postal_code => "60622",
:country_name => "United States of America",
)
result.success?.should == true
result.address.customer_id.should == customer.id
@@ -24,10 +25,11 @@
result.address.company.should == "Moore Co."
result.address.street_address.should == "1811 E Main St"
result.address.extended_address.should == "Suite 200"
result.address.locality.should == "Chicago"
result.address.region.should == "Illinois"
+ result.address.phone_number.should == "5551231234"
result.address.postal_code.should == "60622"
result.address.country_name.should == "United States of America"
result.address.country_code_alpha2.should == "US"
result.address.country_code_alpha3.should == "USA"
result.address.country_code_numeric.should == "840"
@@ -129,17 +131,19 @@
:customer_id => customer.id,
:street_address => "1812 E Main St",
:extended_address => "Suite 201",
:locality => "Bartlett",
:region => "IL",
+ :phone_number => "5551231234",
:postal_code => "60623",
:country_name => "United States of America",
)
address.customer_id.should == customer.id
address.street_address.should == "1812 E Main St"
address.extended_address.should == "Suite 201"
address.locality.should == "Bartlett"
address.region.should == "IL"
+ address.phone_number.should == "5551231234"
address.postal_code.should == "60623"
address.country_name.should == "United States of America"
end
it "raises a ValidationsFailed if invalid" do