]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/api_controller_test.rb
Merge remote-tracking branch 'upstream/pull/2074'
[rails.git] / test / controllers / api_controller_test.rb
index 9cdbd718c99b49d0f0f8325fe7f594fc0b1f0179..cdc20a1aad0d0de4cfea0796e1b904ca7329550b 100644 (file)
@@ -1,5 +1,4 @@
 require "test_helper"
-require "api_controller"
 
 class ApiControllerTest < ActionController::TestCase
   def setup
@@ -406,7 +405,7 @@ class ApiControllerTest < ActionController::TestCase
   end
 
   def test_permissions_basic_auth
-    basic_authorization(create(:user).email, "test")
+    basic_authorization create(:user).email, "test"
     get :permissions
     assert_response :success
     assert_select "osm > permissions", :count => 1 do