diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-30 18:09:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-30 18:09:35 +0300 |
commit | 4dd542c93535f21d0fde62080be2dd98e3926fb1 (patch) | |
tree | 8e1fbb52014effe710dd7534a9f79c9ec72ca905 /spec/models | |
parent | e99d2e196cd87ed071f856f80ae085c7be640876 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/job_token/project_scope_link_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/ci/job_token/project_scope_link_spec.rb b/spec/models/ci/job_token/project_scope_link_spec.rb index c000a3e29f7..4c1f11130a4 100644 --- a/spec/models/ci/job_token/project_scope_link_spec.rb +++ b/spec/models/ci/job_token/project_scope_link_spec.rb @@ -89,6 +89,12 @@ RSpec.describe Ci::JobToken::ProjectScopeLink do end end + describe 'enums' do + let(:directions) { { outbound: 0, inbound: 1 } } + + it { is_expected.to define_enum_for(:direction).with_values(directions) } + end + context 'loose foreign key on ci_job_token_project_scope_links.source_project_id' do it_behaves_like 'cleanup by a loose foreign key' do let!(:parent) { create(:project) } |