Add "create collection" integration test
[arvados.git] / services / api / test / test_helper.rb
index 8e3399523ea800a43c8afaafae38bc10e0066dbf..a81bfdf9e40c1bb03af90a274a1fe68645c534b0 100644 (file)
@@ -24,6 +24,9 @@ class ActionDispatch::IntegrationTest
   def jresponse
     @jresponse ||= ActiveSupport::JSON.decode @response.body
   end
+  def auth auth_fixture
+    {'HTTP_AUTHORIZATION' => "OAuth2 #{api_client_authorizations(auth_fixture).api_token}"}
+  end
 end
 
 # Ensure permissions are computed from the test fixtures.