X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e0059261313d963f337ad0a12d236a4856c227b6..90a7efcf4d5892299dc9a756a252fa13a1951709:/test/functional/user_controller_test.rb?ds=inline diff --git a/test/functional/user_controller_test.rb b/test/functional/user_controller_test.rb index cbe66a0db..750cfbaaf 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