Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiptest/sinonjs-rails
Integrate SinonJS (including wrappers!) using Rails 3.1+ assets pipeline
https://github.com/hiptest/sinonjs-rails
Last synced: about 2 months ago
JSON representation
Integrate SinonJS (including wrappers!) using Rails 3.1+ assets pipeline
- Host: GitHub
- URL: https://github.com/hiptest/sinonjs-rails
- Owner: hiptest
- License: mit
- Created: 2016-03-17T15:50:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-12-29T20:54:40.000Z (almost 3 years ago)
- Last Synced: 2024-10-12T03:15:53.320Z (2 months ago)
- Language: JavaScript
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# 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:
```ruby
gem 'sinonjs-rails'
```Update your gemset:
```shell
bundle
```## Usage
To use only the core sinon.js features, add this line at the top of
your JS tests manifest:```javascript
//= require sinon/sinon-1.17.3
```To use inside QUnit:
```javascript
//= 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
[Sinon.JS]: http://sinonjs.org/