mynewsdesk/mnd-youtube-iframe-api — pull request #2 by zoeesilcock (2014-02-20 22:37:58+00:00)
Title: Phantomjs

Use Phantomjs or an actual web browser for testing in order to have access to a DOM. This should allow us to test the remaining parts of the main class.

We now have cake tasks that setup a file structure for the tests during installation. After that there are two tasks for bulding the coffeescript tests and running them, either with the mocha-phantomjs command on the console or with open on the index.html of our test suite. The default is the former, try it now via 'npm test'.

We don't need the test_helper anymore since that has been moved to the index.html file which is generated by the following template: 'test/phantomjs.eco'