codetriage/codetriage — pull request #137 by mwitek (2013-05-19 06:47:41+00:00)
Title: Headless javascript test integration and javascript cleanup

Major change:
I added the teabag javascript test runner so you can now start unit testing javascript. It is using Mocha, Sinon, Chai. You can run the suite from terminal with:
'rake test:javascript' or simply 'rake test' (will run with the whole suite)

You can also run the test in the browser locally at:
localhost:5000/jstest

Other Changes:
I create a new object for the tab navigation js and added a unit test to cover it.
I removed files from the javascript assets that were not needed (one was blank and the other was jquery, which is not needed as it is already provided by jquery-rails)
I created a new 'global.js' to hold all objects that need to be created on load.