spec/unit/braintree/customer_spec.rb in braintree-2.38.0 vs spec/unit/braintree/customer_spec.rb in braintree-2.39.0
- old
+ new
@@ -56,13 +56,13 @@
Braintree::Customer.find(nil)
end.to raise_error(ArgumentError)
end
it "does not raise an exception if the id is a fixnum" do
- Braintree::Http.stub(:new).and_return stub.as_null_object
+ Braintree::Http.stub(:new).and_return double.as_null_object
expect do
Braintree::Customer.find(8675309)
- end.to_not raise_error(NoMethodError)
+ end.to_not raise_error
end
end
describe "self.update" do
it "raises an exception if hash includes an invalid key" do