Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 386 Bytes
describe 'after'
let g:counter = 0
after
let g:counter += 1
end
it 'should call the after block for each example (the first time)'
Expect g:counter == 0
end
it 'should call the after block for each example (the second time)'
Expect g:counter == 1
end
it 'should call the after block for each example (the third time)'
Expect g:counter == 2
end
end