spec/unit/braintree/credit_card_spec.rb in braintree-2.38.0 vs spec/unit/braintree/credit_card_spec.rb in braintree-2.39.0
- old
+ new
@@ -147,13 +147,13 @@
Braintree::CreditCard.find(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::CreditCard.find(8675309)
- end.to_not raise_error(NoMethodError)
+ end.to_not raise_error
end
end
describe "inspect" do
it "includes the token first" do