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
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