puppetlabs/puppet — pull request #1016 by pcarlisle (2012-08-08 23:09:08+00:00)
Title: Maint/2.7.x/mocha12

This brings us much closer to being able to run with recent version of mocha. The only remaining failures at this point seem to be due to a bug in mocha where it inserts an extra layer of indirection each time it restores a stubbed method.

It also resolves a lot of order dependencies around parser functions by properly clearing environment and function state between tests.