summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-09-11 18:07:00 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-09-11 18:45:49 +0800
commitebe89e8bd259a848d737b33a793298220054a023 (patch)
treecc42250eb2e5c802eb44d888a6602a4de739e7ff
parent1cee6b3c7212835ad251a489a867ec8ca07c2f33 (diff)
downloadgitlab-ce-ebe89e8bd259a848d737b33a793298220054a023.tar.gz
Explicitly state that we're trying to prepend twice
-rw-r--r--spec/lib/gitlab/patch/prependable_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/lib/gitlab/patch/prependable_spec.rb b/spec/lib/gitlab/patch/prependable_spec.rb
index 51bacb18b33..725d733d176 100644
--- a/spec/lib/gitlab/patch/prependable_spec.rb
+++ b/spec/lib/gitlab/patch/prependable_spec.rb
@@ -76,9 +76,8 @@ describe Gitlab::Patch::Prependable do
ce.const_get(:ClassMethods)])
end
- it 'prepends only once' do
- ce.prepend(ee)
- ce.prepend(ee)
+ it 'prepends only once even if called twice' do
+ 2.times { ce.prepend(ee) }
subject