spec/unit/braintree/subscription_spec.rb in braintree-2.38.0 vs spec/unit/braintree/subscription_spec.rb in braintree-2.39.0
- old
+ new
@@ -40,13 +40,13 @@
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})
+ Braintree::Http.stub(:new).and_return double(:get => {:subscription => default_params})
expect do
Braintree::Subscription.find(8675309)
- end.to_not raise_error(NoMethodError)
+ end.to_not raise_error
end
end
describe "self.search" do
it "only allows specified values for status" do