diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-19 06:08:19 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-19 06:08:19 +0300 |
commit | ec1f0dd7f46a6d25e4a47c8254ac67b720f81e89 (patch) | |
tree | cea26c43c6a48b785eba0e97a20592e4545028e1 /spec/models/clusters | |
parent | 1f9bddaf87f0b6c93a9617bad0ae731baf16d268 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/clusters')
-rw-r--r-- | spec/models/clusters/agent_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/clusters/agent_spec.rb b/spec/models/clusters/agent_spec.rb index 10081b955f4..7c546f42d5d 100644 --- a/spec/models/clusters/agent_spec.rb +++ b/spec/models/clusters/agent_spec.rb @@ -13,6 +13,7 @@ RSpec.describe Clusters::Agent, feature_category: :deployment_management do it { is_expected.to have_many(:ci_access_authorized_groups).through(:ci_access_group_authorizations) } it { is_expected.to have_many(:ci_access_project_authorizations).class_name('Clusters::Agents::Authorizations::CiAccess::ProjectAuthorization') } it { is_expected.to have_many(:ci_access_authorized_projects).through(:ci_access_project_authorizations).class_name('::Project') } + it { is_expected.to have_many(:environments).class_name('::Environment') } it { is_expected.to validate_presence_of(:name) } it { is_expected.to validate_length_of(:name).is_at_most(63) } |