summaryrefslogtreecommitdiff
path: root/spec/support
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/support
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/support')
-rw-r--r--spec/support/shared_examples/fast_destroy_all.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared_examples/fast_destroy_all.rb b/spec/support/shared_examples/fast_destroy_all.rb
index 5448ddcfe33..a8079b6d864 100644
--- a/spec/support/shared_examples/fast_destroy_all.rb
+++ b/spec/support/shared_examples/fast_destroy_all.rb
@@ -4,8 +4,8 @@ shared_examples_for 'fast destroyable' do
expect(external_data_counter).to be > 0
expect(subjects.count).to be > 0
- expect { subjects.first.destroy }.to raise_error('`destroy` and `destroy_all` are forbbiden. Please use `fast_destroy_all`')
- expect { subjects.destroy_all }.to raise_error('`destroy` and `destroy_all` are forbbiden. Please use `fast_destroy_all`')
+ expect { subjects.first.destroy }.to raise_error('`destroy` and `destroy_all` are forbidden. Please use `fast_destroy_all`')
+ expect { subjects.destroy_all }.to raise_error('`destroy` and `destroy_all` are forbidden. Please use `fast_destroy_all`') # rubocop: disable DestroyAll
expect(subjects.count).to be > 0
expect(external_data_counter).to be > 0