X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5f4b7d3f916e132f860ab12c017aba638556abf8..4028f4cdb91f616bc774dc9b9fa8c7183eb1f6dd:/test/integration/user_creation_test.rb diff --git a/test/integration/user_creation_test.rb b/test/integration/user_creation_test.rb index 1ff8f9a65..6c6a10447 100644 --- a/test/integration/user_creation_test.rb +++ b/test/integration/user_creation_test.rb @@ -40,7 +40,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest end assert_response :success assert_template "user/new" - assert_equal response.headers["Content-Language"][0..1], locale.to_s[0..1] unless locale == :root + assert_equal locale.to_s, response.headers["Content-Language"] unless locale == :root assert_select "form > fieldset > div.form-row > input.field_with_errors#user_email" assert_no_missing_translations end