sinonjs-rails
This gem intends to provide the whole set of sources needed to use sinon.js framework in a Rails 3.1+ stack.
No need for several gems carrying each a single JS file...
As of today, it provides:
- The sinon.js core sources
- The QUnit adapter
Installation
In your Gemfile, add:
gem 'sinonjs-rails'
Update your gemset:
bundle
Usage
To use only the core sinon.js features, add this line at the top of your JS tests manifest:
//= require sinon/sinon-1.17.3
To use inside QUnit:
//= require sinon/sinon-1.17.3
//= require sinon/adapter/sinon-qunit-1.0.0
Contribution
Contributions are welcome (add more adapters, ...). Submit your pull requests.