1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-21 15:54:22 +01:00

fix integration test: using ERB in cassette

This commit is contained in:
Sylvain 2016-06-06 11:04:01 +02:00
parent 93fc9722e9
commit c546dc45fb
2 changed files with 12 additions and 12 deletions

View File

@ -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: {

View File

@ -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,7 +478,7 @@ http_interactions:
"trial_period_days": null
},
"quantity": 1,
"start": 1460389435,
"start": <%= DateTime.now.to_i %>,
"status": "active",
"tax_percent": null,
"trial_end": null,