Skip to content

Commit 376bd8b

Browse files
authored
Spec
1 parent 78a9ff6 commit 376bd8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/v3/services/v2_subscription/update_creditcard_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
let(:token) { Travis::Api::App::AccessToken.create(user: user, app_id: 1) }
2121
let(:headers) {{ 'HTTP_AUTHORIZATION' => "token #{token}",
2222
'CONTENT_TYPE' => 'application/json' }}
23-
let(:creditcard_token) { { 'token' => 'token_from_stripe' } }
23+
let(:creditcard_token) { { 'token' => 'token_from_stripe', 'fingerprint' => 'fingerprint_from_stripe' } }
2424
let(:subscription_id) { rand(999) }
2525

2626
let!(:stubbed_request) do
2727
stub_billing_request(:patch, "/v2/subscriptions/#{subscription_id}/creditcard", auth_key: billing_auth_key, user_id: user.id)
28-
.with(body: { 'token' => 'token_from_stripe' })
28+
.with(body: { 'token' => 'token_from_stripe', 'fingerprint' => 'fingerprint_from_stripe' })
2929
.to_return(status: 204)
3030
end
3131

0 commit comments

Comments
 (0)