X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/101e3227b25c16874fa73660bfd7e338fbfe0da2..8c82f404b48a159797bd0e96e3d0098f0cf3ba16:/services/api/test/unit/create_superuser_token_test.rb diff --git a/services/api/test/unit/create_superuser_token_test.rb b/services/api/test/unit/create_superuser_token_test.rb index 122ae51c2d..e95e0f2264 100644 --- a/services/api/test/unit/create_superuser_token_test.rb +++ b/services/api/test/unit/create_superuser_token_test.rb @@ -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)