Merge branch '8784-dir-listings'
[arvados.git] / services / api / test / unit / create_superuser_token_test.rb
index 122ae51c2d4bdde1941478e145493b7e5c7902c0..e95e0f2264d20e3767e07363e8a151c7915135ff 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'safe_json'
 require 'test_helper'
 require 'create_superuser_token'
@@ -90,7 +94,7 @@ class CreateSuperUserTokenTest < ActiveSupport::TestCase
     active_user_token = api_client_authorizations("admin_vm").api_token
     ApiClientAuthorization.
       where(user_id: system_user.id).
-      update_all(scopes: SafeJSON.dump(["GET /"]))
+      update_all(scopes: ["GET /"])
     fixture_tokens = ApiClientAuthorization.all.collect(&:api_token)
     new_token = create_superuser_token
     refute_includes(fixture_tokens, new_token)