diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-09-11 13:07:00 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-09-11 13:45:49 +0300 |
commit | ebe89e8bd259a848d737b33a793298220054a023 (patch) | |
tree | cc42250eb2e5c802eb44d888a6602a4de739e7ff /spec/lib/gitlab/patch | |
parent | 1cee6b3c7212835ad251a489a867ec8ca07c2f33 (diff) |
Explicitly state that we're trying to prepend twice
Diffstat (limited to 'spec/lib/gitlab/patch')
-rw-r--r-- | spec/lib/gitlab/patch/prependable_spec.rb | 5 |
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 |