Shopify/batman — pull request #321 by hornairs (2012-01-30 22:52:54+00:00)
Title: node v0.6 support

- Switch to running tests via qqunit instead of node-qunit. qqunit is a far more simple library which boots up jsdom and QUnit inside it. It doesn't do any multiprocess shenanigans like node-qunit so it's way more useful for debugging via a debugger, and it is faster, and it provides less but incremental output during successful tests runs. It also runs on vanilla QUnit 1.2.0, which is a bonus.
- Add new files tests/run.{js,coffee} which setup qqunit and Batman for testing on the command line. Run `node tests/run.js` or `cake test` or `cake -w test` to run the suite.
- Switch to using helpers on the Batman object instead of global helpers in the interest of being a good citizen of the global namespace.
- Fix many suspiciously few encoder warnings
- Fix many object-key property access warnings
- Fix assertions which caused jsDump, the bit in QUnit which recurses over objects to print them out, to recurse infinitely. It's circular reference handling is poor and it sometimes will die in an infinite loop on `equals` between two BatmanObjects. Instead we just use `ok a == b`.
- Updated the `delay` helper in the tests to be simpler and not use `spyOnDuring`, which would only catch erroneous `QUnit.start` calls when they were synchronous, which for me was not even once.
- Fix tests to run on Travis and run Travis tests across both node versions supported

See #224.