Explicitly state that we're trying to prepend twice
This commit is contained in:
parent
1cee6b3c72
commit
ebe89e8bd2
|
|
@ -76,9 +76,8 @@ describe Gitlab::Patch::Prependable do
|
||||||
ce.const_get(:ClassMethods)])
|
ce.const_get(:ClassMethods)])
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'prepends only once' do
|
it 'prepends only once even if called twice' do
|
||||||
ce.prepend(ee)
|
2.times { ce.prepend(ee) }
|
||||||
ce.prepend(ee)
|
|
||||||
|
|
||||||
subject
|
subject
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue