Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-13 21:12:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-13 21:12:21 +0300
commit05ade12880fb1316b086583fa98b4d2f3f26a143 (patch)
treed1f28732a0502079d4112b9ebd6456232fd3acdf /spec/lib/api
parent4597f7fe473d9fa622510f8967620006d4bda64e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/api')
-rw-r--r--spec/lib/api/entities/personal_access_token_with_details_spec.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/spec/lib/api/entities/personal_access_token_with_details_spec.rb b/spec/lib/api/entities/personal_access_token_with_details_spec.rb
deleted file mode 100644
index a53d6febba1..00000000000
--- a/spec/lib/api/entities/personal_access_token_with_details_spec.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe API::Entities::PersonalAccessTokenWithDetails do
- describe '#as_json' do
- let_it_be(:user) { create(:user) }
- let_it_be(:token) { create(:personal_access_token, user: user, expires_at: nil) }
-
- let(:entity) { described_class.new(token) }
-
- it 'returns token data' do
- expect(entity.as_json).to eq({
- id: token.id,
- name: token.name,
- revoked: false,
- created_at: token.created_at,
- scopes: ['api'],
- user_id: user.id,
- last_used_at: nil,
- active: true,
- expires_at: nil,
- expired: false,
- expires_soon: false,
- revoke_path: Gitlab::Routing.url_helpers.revoke_profile_personal_access_token_path(token)
- })
- end
- end
-end