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
iam4x
94.17K
ericdfields
63.02K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#