spec/unit/braintree/address_spec.rb in braintree-2.38.0 vs spec/unit/braintree/address_spec.rb in braintree-2.39.0

- old
+ new

@@ -78,13 +78,13 @@ Braintree::Address.find("customer_id", nil) end.to raise_error(ArgumentError) end it "does not raise an error if address_id does not respond to strip" do - Braintree::Http.stub(:new).and_return stub.as_null_object + Braintree::Http.stub(:new).and_return double.as_null_object expect do Braintree::Address.find("customer_id", 8675309) - end.to_not raise_error(NoMethodError) + end.to_not raise_error end end describe "self.new" do it "is protected" do