Sinon.js for Rails
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib Release 1.15.0 Jun 15, 2015
vendor/assets/javascripts Release 1.15.0 Jun 15, 2015
.gitignore v1.3.2 Apr 13, 2012
Gemfile v1.3.2 Apr 13, 2012
LICENSE v1.3.2 Apr 13, 2012 Update Nov 26, 2013
Rakefile v1.3.2 Apr 13, 2012
sinon-rails.gemspec bump version Sep 7, 2012

Sinon.js for Rails

sinon.js via asset pipeline


Add this line to your application's Gemfile:

group :test, :development do    
    gem 'sinon-rails'

And then execute:

$ bundle

Add this line to your test manifest file:

//=require sinon

Or directly include at /assets/sinon.js


Read about sinon.js here.


sinon-rails maintained by Travis Jeffery

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request