I'm trying to write javascript unit tests for my Javascript files in my Rails application.I came across teaspoon-mocha gem and am really excited to use it. But I have a few questions before I can start off:

  1. how do we control the versions of mocha, chai etc. Is there a way to specify which version we want to use?

  2. I believe teaspoon itself is a test runner so we don't need something like grunt to run the tests right?

3.How do we specify javascript driver and browser for the tests? what is the difference between driver and browser?

  1. Will the javascript files be packaged as part of the rails application?

  2. I see that teaspoon mocha was last updated on 'October 09, 2015', Is it still being maintained?

It would be very helpful if you could answer these questions. Thanks in advance.

0 Answers