X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b84ffebb7bc3c3a883b3ed7d5b78a7e0a0806254..bd7a912aa69237cec34c711aefb9454360b094a8:/test/integration/user_creation_test.rb diff --git a/test/integration/user_creation_test.rb b/test/integration/user_creation_test.rb index b0d0ecffd..c9b71e3ca 100644 --- a/test/integration/user_creation_test.rb +++ b/test/integration/user_creation_test.rb @@ -30,7 +30,7 @@ class UserCreationTest < ActionController::IntegrationTest assert_template 'user/new' assert_equal response.headers['Content-Language'][0..1], localer.to_s[0..1] unless localer == :root assert_select "div#errorExplanation" - assert_select "table#signupForm > tr > td > div[class=fieldWithErrors] > input#user_email" + assert_select "table#signupForm > tr > td > div[class=field_with_errors] > input#user_email" assert_no_missing_translations end end @@ -49,7 +49,7 @@ class UserCreationTest < ActionController::IntegrationTest assert_response :success assert_template 'user/new' assert_select "div#errorExplanation" - assert_select "table#signupForm > tr > td > div[class=fieldWithErrors] > input#user_display_name" + assert_select "table#signupForm > tr > td > div[class=field_with_errors] > input#user_display_name" assert_no_missing_translations end end @@ -114,7 +114,7 @@ class UserCreationTest < ActionController::IntegrationTest # Check that the confirm account url is correct confirm_regex = Regexp.new("/user/redirect_tester/confirm\\?confirm_string=([a-zA-Z0-9]*)") assert_match(confirm_regex, register_email.body) - confirm_string = confirm_regex.match(register_email.body)[1] + confirm_string = register_email.body.match(confirm_regex)[1] # Check the page assert_response :success @@ -133,7 +133,7 @@ class UserCreationTest < ActionController::IntegrationTest assert_response :redirect # but it not redirects to /user//traces follow_redirect! assert_response :success - assert_template "trace/list.html.erb" + assert_template 'trace/list' end def test_user_create_openid_success @@ -228,6 +228,6 @@ class UserCreationTest < ActionController::IntegrationTest assert_response :redirect # but it not redirects to /user//traces follow_redirect! assert_response :success - assert_template "trace/list.html.erb" + assert_template "trace/list" end end