]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_creation_test.rb
Rework locale selection
[rails.git] / test / integration / user_creation_test.rb
index 1ff8f9a650409a99d0f4b9bda73405286d91e0cb..6c6a104478a2ffa5081f2da007772afcfab90871 100644 (file)
@@ -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