summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2018-08-17 17:10:12 +0000
committerRobert Speicher <robert@gitlab.com>2018-08-17 17:10:12 +0000
commit120ce02e5e7e72654cb42edddc25ff3b057ec136 (patch)
treedc612e487ea3d84cc7848ff5cb74660a3d79bf5a /spec/workers
parenta58d0a0182d06efbbde57821e71c305518325d6f (diff)
parent9606dbbb033567de9831a8cdea0e56236e7d2eb2 (diff)
downloadgitlab-ce-120ce02e5e7e72654cb42edddc25ff3b057ec136.tar.gz
Merge branch 'blacklist-destroy-all' into 'master'
Blacklist the use of destroy_all See merge request gitlab-org/gitlab-ce!21250
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/repository_check/single_repository_worker_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/workers/repository_check/single_repository_worker_spec.rb b/spec/workers/repository_check/single_repository_worker_spec.rb
index 22fc64c1536..f11875cffd1 100644
--- a/spec/workers/repository_check/single_repository_worker_spec.rb
+++ b/spec/workers/repository_check/single_repository_worker_spec.rb
@@ -6,7 +6,7 @@ describe RepositoryCheck::SingleRepositoryWorker do
it 'skips when the project has no push events' do
project = create(:project, :repository, :wiki_disabled)
- project.events.destroy_all
+ project.events.destroy_all # rubocop: disable DestroyAll
break_project(project)
expect(worker).not_to receive(:git_fsck)