spec/unit/braintree/subscription_spec.rb in braintree-2.16.0 vs spec/unit/braintree/subscription_spec.rb in braintree-2.17.0

- old
+ new

@@ -38,9 +38,16 @@ it "raises error if passed nil" do expect do Braintree::Subscription.find(nil) end.to raise_error(ArgumentError) end + + it "does not raise an error if subscription id does not respond to strip" do + Braintree::Http.stub(:new).and_return stub(:get => {:subscription => default_params}) + expect do + Braintree::Subscription.find(8675309) + end.to_not raise_error(NoMethodError) + end end describe "self.search" do it "only allows specified values for status" do lambda do