diff options
Diffstat (limited to 'spec/models/ci/sources/pipeline_spec.rb')
-rw-r--r-- | spec/models/ci/sources/pipeline_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/ci/sources/pipeline_spec.rb b/spec/models/ci/sources/pipeline_spec.rb index 732dd5c3df3..fdc1c111c40 100644 --- a/spec/models/ci/sources/pipeline_spec.rb +++ b/spec/models/ci/sources/pipeline_spec.rb @@ -20,14 +20,14 @@ RSpec.describe Ci::Sources::Pipeline do context 'loose foreign key on ci_sources_pipelines.source_project_id' do it_behaves_like 'cleanup by a loose foreign key' do - let!(:parent) { create(:project) } + let!(:parent) { create(:project, namespace: create(:group)) } let!(:model) { create(:ci_sources_pipeline, source_project: parent) } end end context 'loose foreign key on ci_sources_pipelines.project_id' do it_behaves_like 'cleanup by a loose foreign key' do - let!(:parent) { create(:project) } + let!(:parent) { create(:project, namespace: create(:group)) } let!(:model) { create(:ci_sources_pipeline, project: parent) } end end |