From 317dbfafea6194323cdaaea4d418007d17ca32f1 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 26 Aug 2022 21:10:03 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/serializers/group_access_token_entity_spec.rb | 4 ++-- spec/serializers/project_access_token_entity_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/serializers') diff --git a/spec/serializers/group_access_token_entity_spec.rb b/spec/serializers/group_access_token_entity_spec.rb index 39b587c7df7..05609dc3c7a 100644 --- a/spec/serializers/group_access_token_entity_spec.rb +++ b/spec/serializers/group_access_token_entity_spec.rb @@ -27,7 +27,7 @@ RSpec.describe GroupAccessTokenEntity do scopes: token.scopes, user_id: token.user_id, revoke_path: expected_revoke_path, - access_level: ::Gitlab::Access::DEVELOPER + role: 'Developer' )) expect(json).not_to include(:token) @@ -48,7 +48,7 @@ RSpec.describe GroupAccessTokenEntity do scopes: token.scopes, user_id: token.user_id, revoke_path: expected_revoke_path, - access_level: nil + role: nil )) expect(json).not_to include(:token) diff --git a/spec/serializers/project_access_token_entity_spec.rb b/spec/serializers/project_access_token_entity_spec.rb index 616aa45e9d5..4b5b4d4d77d 100644 --- a/spec/serializers/project_access_token_entity_spec.rb +++ b/spec/serializers/project_access_token_entity_spec.rb @@ -28,7 +28,7 @@ RSpec.describe ProjectAccessTokenEntity do scopes: token.scopes, user_id: token.user_id, revoke_path: expected_revoke_path, - access_level: ::Gitlab::Access::DEVELOPER + role: 'Developer' )) expect(json).not_to include(:token) @@ -52,7 +52,7 @@ RSpec.describe ProjectAccessTokenEntity do scopes: token.scopes, user_id: token.user_id, revoke_path: expected_revoke_path, - access_level: nil + role: nil )) expect(json).not_to include(:token) -- cgit v1.2.3