diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-23 12:08:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-23 12:08:15 +0300 |
commit | abbb493d78e42f044d732c7ad46917300cca1516 (patch) | |
tree | ae786d6bc1ba548421c20d1667f528d4ff90e113 /spec/models/clusters | |
parent | 9d15ef5c5caf584ae16398940c16f2bdafd6f3e2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/clusters')
-rw-r--r-- | spec/models/clusters/agent_token_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/clusters/agent_token_spec.rb b/spec/models/clusters/agent_token_spec.rb index efa2a3eb09b..74723e3abd8 100644 --- a/spec/models/clusters/agent_token_spec.rb +++ b/spec/models/clusters/agent_token_spec.rb @@ -49,4 +49,12 @@ RSpec.describe Clusters::AgentToken do expect(agent_token.token.length).to be >= 50 end end + + describe '#to_ability_name' do + it 'is :cluster' do + agent_token = build(:cluster_agent_token) + + expect(agent_token.to_ability_name).to eq :cluster + end + end end |