spec/unit/braintree/address_spec.rb in braintree-2.12.0 vs spec/unit/braintree/address_spec.rb in braintree-2.13.0

- old
+ new

@@ -64,9 +64,21 @@ it "raises an error if customer_id contains invalid chars" do expect do Braintree::Address.find("spaces not allowed", "address_id") end.to raise_error(ArgumentError, "customer_id contains invalid characters") end + + it "raises an error if address_id is blank" do + expect do + Braintree::Address.find("customer_id", "") + end.to raise_error(ArgumentError) + end + + it "raises an error if address_id is blank" do + expect do + Braintree::Address.find("customer_id", nil) + end.to raise_error(ArgumentError) + end end describe "self.new" do it "is protected" do expect do