diff --git a/test/integration/subscriptions/renew_as_user_test.rb b/test/integration/subscriptions/renew_as_user_test.rb index 918f74989..4c4cf5457 100644 --- a/test/integration/subscriptions/renew_as_user_test.rb +++ b/test/integration/subscriptions/renew_as_user_test.rb @@ -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: { diff --git a/test/vcr_cassettes/subscriptions_user_renew_success.yml b/test/vcr_cassettes/subscriptions_user_renew_success.yml index 4eade7125..ad930f89a 100644 --- a/test/vcr_cassettes/subscriptions_user_renew_success.yml +++ b/test/vcr_cassettes/subscriptions_user_renew_success.yml @@ -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