spec/unit/braintree/customer_spec.rb in braintree-2.16.0 vs spec/unit/braintree/customer_spec.rb in braintree-2.17.0
- old
+ new
@@ -51,9 +51,16 @@
it "raises an exception if the id is nil" do
expect do
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
+ expect do
+ Braintree::Customer.find(8675309)
+ end.to_not raise_error(NoMethodError)
+ end
end
describe "self.update" do
it "raises an exception if hash includes an invalid key" do
expect do