diff options
Diffstat (limited to 'spec/models/commit_status_spec.rb')
-rw-r--r-- | spec/models/commit_status_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/models/commit_status_spec.rb b/spec/models/commit_status_spec.rb index d5e74d36b58..86ee159b97e 100644 --- a/spec/models/commit_status_spec.rb +++ b/spec/models/commit_status_spec.rb @@ -987,4 +987,11 @@ RSpec.describe CommitStatus do commit_status.expire_etag_cache! end end + + context 'loose foreign key on ci_builds.project_id' do + it_behaves_like 'cleanup by a loose foreign key' do + let!(:parent) { create(:project) } + let!(:model) { create(:ci_build, project: parent) } + end + end end |