Merge branch '8784-dir-listings'
[arvados.git] / services / api / test / integration / api_client_authorizations_api_test.rb
index fef4b5bb21eea7449061e93d84bd9a718d29f64e..e42a4ef1055deffd27d4cffc6eb67b370fbae470 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 
 class ApiClientAuthorizationsApiTest < ActionDispatch::IntegrationTest
@@ -19,9 +23,9 @@ class ApiClientAuthorizationsApiTest < ActionDispatch::IntegrationTest
 
     get "/arvados/v1/users/current", {
       :format => :json
-    }, {'HTTP_AUTHORIZATION' => "OAuth2 #{jresponse['api_token']}"}
-    @jresponse = nil
-    assert_equal users(:spectator).uuid, jresponse['uuid']
+    }, {'HTTP_AUTHORIZATION' => "OAuth2 #{json_response['api_token']}"}
+    @json_response = nil
+    assert_equal users(:spectator).uuid, json_response['uuid']
   end
 
   test "refuse to create token for different user if not trusted client" do