X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f885cfe0f5f0602dd51e1734f8ce2eaf377b1614..071f61e3ade9cbe5956216990ee2699ff5993f62:/test/integration/user_creation_test.rb diff --git a/test/integration/user_creation_test.rb b/test/integration/user_creation_test.rb index b825990b8..9c934dc07 100644 --- a/test/integration/user_creation_test.rb +++ b/test/integration/user_creation_test.rb @@ -32,7 +32,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest end def test_user_create_submit_duplicate_email - I18n.available_locales.each do |locale| + Locale.available.each do |locale| dup_email = create(:user).email display_name = "#{locale}_new_tester" assert_difference("User.count", 0) do @@ -50,7 +50,7 @@ class UserCreationTest < ActionDispatch::IntegrationTest end assert_response :success assert_template "users/new" - assert_equal locale.to_s, response.headers["Content-Language"] unless locale == :root + assert_equal locale.to_s, response.headers["Content-Language"] assert_select "form > fieldset > div.standard-form-row > input.field_with_errors#user_email" assert_no_missing_translations end