mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
fix integration test: using ERB in cassette
This commit is contained in:
parent
93fc9722e9
commit
c546dc45fb
@ -9,7 +9,7 @@ class Subscriptions::RenewAsUserTest < ActionDispatch::IntegrationTest
|
||||
test 'user successfully renew a subscription after it has ended' do
|
||||
plan = Plan.find_by(group_id: @user.group.id, type: 'Plan', base_name: 'Mensuel')
|
||||
|
||||
VCR.use_cassette("subscriptions_user_renew_success") do
|
||||
VCR.use_cassette("subscriptions_user_renew_success", :erb => true) do
|
||||
post '/api/subscriptions',
|
||||
{
|
||||
subscription: {
|
||||
|
@ -90,7 +90,7 @@ http_interactions:
|
||||
"type": "card",
|
||||
"used": false
|
||||
}
|
||||
http_version:
|
||||
http_version:
|
||||
recorded_at: Mon, 11 Apr 2016 15:43:52 GMT
|
||||
- request:
|
||||
method: get
|
||||
@ -180,7 +180,7 @@ http_interactions:
|
||||
"type": "card",
|
||||
"used": false
|
||||
}
|
||||
http_version:
|
||||
http_version:
|
||||
recorded_at: Mon, 11 Apr 2016 15:43:53 GMT
|
||||
- request:
|
||||
method: get
|
||||
@ -392,7 +392,7 @@ http_interactions:
|
||||
"url": "/v1/customers/cus_8E2ys9zDZgetWX/subscriptions"
|
||||
}
|
||||
}
|
||||
http_version:
|
||||
http_version:
|
||||
recorded_at: Mon, 11 Apr 2016 15:43:54 GMT
|
||||
- request:
|
||||
method: post
|
||||
@ -457,8 +457,8 @@ http_interactions:
|
||||
"application_fee_percent": null,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"current_period_end": 1462981435,
|
||||
"current_period_start": 1460389435,
|
||||
"current_period_end": <%= (DateTime.now + 1.month).to_i %>,
|
||||
"current_period_start": <%= DateTime.now.to_i %>,
|
||||
"customer": "cus_8E2ys9zDZgetWX",
|
||||
"discount": null,
|
||||
"ended_at": null,
|
||||
@ -478,13 +478,13 @@ http_interactions:
|
||||
"trial_period_days": null
|
||||
},
|
||||
"quantity": 1,
|
||||
"start": 1460389435,
|
||||
"start": <%= DateTime.now.to_i %>,
|
||||
"status": "active",
|
||||
"tax_percent": null,
|
||||
"trial_end": null,
|
||||
"trial_start": null
|
||||
}
|
||||
http_version:
|
||||
http_version:
|
||||
recorded_at: Mon, 11 Apr 2016 15:43:55 GMT
|
||||
- request:
|
||||
method: get
|
||||
@ -620,7 +620,7 @@ http_interactions:
|
||||
"has_more": true,
|
||||
"url": "/v1/invoices"
|
||||
}
|
||||
http_version:
|
||||
http_version:
|
||||
recorded_at: Mon, 11 Apr 2016 15:44:00 GMT
|
||||
- request:
|
||||
method: get
|
||||
@ -865,7 +865,7 @@ http_interactions:
|
||||
"url": "/v1/customers/cus_8E2ys9zDZgetWX/subscriptions"
|
||||
}
|
||||
}
|
||||
http_version:
|
||||
http_version:
|
||||
recorded_at: Mon, 11 Apr 2016 15:44:01 GMT
|
||||
- request:
|
||||
method: get
|
||||
@ -955,7 +955,7 @@ http_interactions:
|
||||
"trial_end": null,
|
||||
"trial_start": null
|
||||
}
|
||||
http_version:
|
||||
http_version:
|
||||
recorded_at: Mon, 11 Apr 2016 15:44:01 GMT
|
||||
- request:
|
||||
method: delete
|
||||
@ -1045,6 +1045,6 @@ http_interactions:
|
||||
"trial_end": null,
|
||||
"trial_start": null
|
||||
}
|
||||
http_version:
|
||||
http_version:
|
||||
recorded_at: Mon, 11 Apr 2016 15:44:02 GMT
|
||||
recorded_with: VCR 3.0.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user