]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/user_controller_test.rb
Standardise on basic_authorization without the parentheses
[rails.git] / test / controllers / user_controller_test.rb
index df5ba7fe70c5ca17d266ac87d5e7c55e0bc47499..3e71ea06a166a4da6d9a2d0de1223b4dbd75f617 100644 (file)
@@ -1093,7 +1093,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 +1148,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