test/stripe/api_resource_test.rb in stripe-1.39.0 vs test/stripe/api_resource_test.rb in stripe-1.40.0
- old
+ new
@@ -549,24 +549,9 @@
@mock.expects(:post).once.with("#{Stripe.api_base}/v1/accounts/myid", nil, '').returns(make_response({"id" => "myid"}))
acct.save
end
- should 'not save nested API resources' do
- ch = Stripe::Charge.construct_from({
- :id => 'charge_id',
- :customer => {
- :object => 'customer',
- :id => 'customer_id'
- }
- })
-
- @mock.expects(:post).once.with("#{Stripe.api_base}/v1/charges/charge_id", nil, '').returns(make_response({"id" => "charge_id"}))
-
- ch.customer.description = 'Bob'
- ch.save
- end
-
should 'correctly handle replaced nested objects' do
acct = Stripe::Account.construct_from({
:id => 'myid',
:legal_entity => {
:last_name => 'Smith',