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.
Written by Damon Davison
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Coffeescript
Authors
Filed Under
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#