Provide response[_profile][request_time] if requested by client. refs #1815
[arvados.git] / services / api / test / integration / collections_api_test.rb
1 require 'test_helper'
2
3 class CollectionsApiTest < ActionDispatch::IntegrationTest
4   fixtures :all
5
6   test "should get index" do
7     get "/arvados/v1/collections", {:format => :json}, {'HTTP_AUTHORIZATION' => "OAuth2 #{api_client_authorizations(:active).api_token}"}
8     @json_response ||= ActiveSupport::JSON.decode @response.body
9     assert_response :success
10     assert_equal "arvados#collectionList", @json_response['kind']
11   end
12
13 end