diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
commit | 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch) | |
tree | dc4d20fe6064752c0bd323187252c77e0a89144b /spec/finders/deploy_tokens/tokens_finder_spec.rb | |
parent | 9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff) |
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/finders/deploy_tokens/tokens_finder_spec.rb')
-rw-r--r-- | spec/finders/deploy_tokens/tokens_finder_spec.rb | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/spec/finders/deploy_tokens/tokens_finder_spec.rb b/spec/finders/deploy_tokens/tokens_finder_spec.rb index 7f19c5bf11b..4c72a2ced7c 100644 --- a/spec/finders/deploy_tokens/tokens_finder_spec.rb +++ b/spec/finders/deploy_tokens/tokens_finder_spec.rb @@ -30,24 +30,26 @@ RSpec.describe DeployTokens::TokensFinder do it 'returns all deploy tokens' do expect(subject.size).to eq(6) - is_expected.to match_array([ - project_deploy_token, - revoked_project_deploy_token, - expired_project_deploy_token, - group_deploy_token, - revoked_group_deploy_token, - expired_group_deploy_token - ]) + is_expected.to match_array( + [ + project_deploy_token, + revoked_project_deploy_token, + expired_project_deploy_token, + group_deploy_token, + revoked_group_deploy_token, + expired_group_deploy_token + ]) end context 'and active filter is applied' do let(:params) { { active: true } } it 'returns only active tokens' do - is_expected.to match_array([ - project_deploy_token, - group_deploy_token - ]) + is_expected.to match_array( + [ + project_deploy_token, + group_deploy_token + ]) end end @@ -68,11 +70,12 @@ RSpec.describe DeployTokens::TokensFinder do end it 'returns all deploy tokens for the project' do - is_expected.to match_array([ - project_deploy_token, - revoked_project_deploy_token, - expired_project_deploy_token - ]) + is_expected.to match_array( + [ + project_deploy_token, + revoked_project_deploy_token, + expired_project_deploy_token + ]) end context 'and active filter is applied' do @@ -100,11 +103,12 @@ RSpec.describe DeployTokens::TokensFinder do end it 'returns all deploy tokens for the group' do - is_expected.to match_array([ - group_deploy_token, - revoked_group_deploy_token, - expired_group_deploy_token - ]) + is_expected.to match_array( + [ + group_deploy_token, + revoked_group_deploy_token, + expired_group_deploy_token + ]) end context 'and active filter is applied' do |