Explicitly state that we're trying to prepend twice

This commit is contained in:
Lin Jen-Shin 2018-09-11 18:07:00 +08:00
parent 1cee6b3c72
commit ebe89e8bd2
1 changed files with 2 additions and 3 deletions

View File

@ -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