isabella232 / sinonjs-rails

Integrate SinonJS (including wrappers!) using Rails 3.1+ assets pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Acknowledgements

About

Integrate SinonJS (including wrappers!) using Rails 3.1+ assets pipeline

License:MIT License


Languages

Language:JavaScript 99.5%Language:Ruby 0.5%