Commit ebe89e8b authored by Lin Jen-Shin's avatar Lin Jen-Shin

Explicitly state that we're trying to prepend twice

parent 1cee6b3c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment