X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/64f373dc598e9c672e1575622f2fc76c29655b8d..edb68e839f4830e722bf187af7e77c9a248551a8:/test/functional/user_controller_test.rb diff --git a/test/functional/user_controller_test.rb b/test/functional/user_controller_test.rb index cbe66a0db..a069f20a2 100644 --- a/test/functional/user_controller_test.rb +++ b/test/functional/user_controller_test.rb @@ -8,7 +8,7 @@ class UserControllerTest < ActionController::TestCase get :new assert_response :success - assert_select "html:root", :count => 1 do + assert_select "html", :count => 1 do assert_select "head", :count => 1 do assert_select "title", :text => /Create account/, :count => 1 end @@ -43,7 +43,7 @@ class UserControllerTest < ActionController::TestCase assert_match /#{@url}/, register_email.body # Check the page - assert_redirected_to :action => 'login' + assert_redirected_to :action => 'login', :referer => nil ActionMailer::Base.deliveries.clear end @@ -59,7 +59,7 @@ class UserControllerTest < ActionController::TestCase assert_response :success assert_template 'new' 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" end # Check that the user account page will display and contains some relevant