X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d4a461dc26ce20d2ae806f126c0b43a7214d2156..60f2074baca1b36bf02b02be976a2527d60c5fef:/test/controllers/user_controller_test.rb diff --git a/test/controllers/user_controller_test.rb b/test/controllers/user_controller_test.rb index df5ba7fe7..4dcb1108a 100644 --- a/test/controllers/user_controller_test.rb +++ b/test/controllers/user_controller_test.rb @@ -782,6 +782,10 @@ class UserControllerTest < ActionController::TestCase get :account, :params => { :display_name => user.display_name }, :session => { :user => user } assert_response :success assert_template :account + assert_select "form#accountForm" do |form| + assert_equal "post", form.attr("method").to_s + assert_equal "/user/#{URI.encode(user.display_name)}/account", form.attr("action").to_s + end # Updating the description should work user.description = "new description" @@ -1093,7 +1097,7 @@ class UserControllerTest < ActionController::TestCase assert_response :unauthorized # check that we get a response when logged in - basic_authorization(user.email, "test") + basic_authorization user.email, "test" get :api_details assert_response :success assert_equal "text/xml", response.content_type @@ -1148,7 +1152,7 @@ class UserControllerTest < ActionController::TestCase assert_response :unauthorized # check that we get a response when logged in - basic_authorization(user.email, "test") + basic_authorization user.email, "test" get :api_gpx_files assert_response :success assert_equal "application/xml", response.content_type