Home · Blog · Talks · Projects

Mocha NoMethodError / Load order since version 0.9.6

There have been a number of load order issues since 0.9.6 was released for which I apologise.

The key message is that since 0.9.6, you must ensure that your test framework (Test::Unit or MiniTest) is loaded before Mocha is loaded, otherwise Mocha will not monkey-patch the test framework and calls to the Mocha API will result in NoMethodError.

I hope to write this up in more detail soon, but in the meantime here are a couple of useful links :-

Please contact us on the mailing list if you have any questions.

Contact · History · Colophon · Links