Last Updated: February 25, 2016
· allolex

Jasmine, Sinon and Rails

To save yourself some unnecessary clicking when using the jasmine-sinon gem, add the sinon-rails gem to your Gemspec at the same time and then make sure that they are above the application file in spec.js(.coffee). sinon-rails is loaded via require sinon.

Have a fresh tip? Share with Coderwall community!

Post a tip