Commit 2c1bda68 authored by Nicolas Dular's avatar Nicolas Dular

Use string instead of integer in test


The request header should actually be a string instead of an integer to
reflect reality.
parent b58707b3
...@@ -216,7 +216,7 @@ RSpec.describe SessionsController do ...@@ -216,7 +216,7 @@ RSpec.describe SessionsController do
before do before do
stub_application_setting(recaptcha_enabled: true) stub_application_setting(recaptcha_enabled: true)
request.headers[described_class::CAPTCHA_HEADER] = 1 request.headers[described_class::CAPTCHA_HEADER] = '1'
end end
it 'displays an error when the reCAPTCHA is not solved' do it 'displays an error when the reCAPTCHA is not solved' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment