jasmine-spec-extras/README.md

36 lines
1.0 KiB
Markdown
Raw Normal View History

2011-10-17 14:41:32 +00:00
Use vendored Jasmine helpers! No more copying around all those fun helpers to all your projects!
2011-11-22 19:38:16 +00:00
Works in jasmine-headless-webkit versions that support Sprockets.
2011-10-17 14:41:32 +00:00
## What it comes with...
It comes with the libraries I need:
2012-01-26 15:36:07 +00:00
* [jasmine-fixture](http://github.com/searls/jasmine-fixture) 1.0.2
2011-10-17 14:41:32 +00:00
* [jasmine-jquery](https://github.com/velesin/jasmine-jquery) 1.3.1
* [jasmine-sinon](https://github.com/froots/jasmine-sinon) 0.1.0
2011-10-17 14:41:32 +00:00
* [Sinon.js](http://sinonjs.org/) 1.2.0
## How to use it
2011-11-22 19:38:16 +00:00
It's Sprockets vendored gem goodness, so at the top of your `spec_helper`:
2011-10-17 14:41:32 +00:00
2011-11-22 19:38:16 +00:00
``` coffee
#= require jasmine-jquery
#= require sinon
#= require jasmine-sinon
2011-10-17 14:41:32 +00:00
2011-11-22 19:38:16 +00:00
...make cool code...
2011-10-17 14:41:32 +00:00
```
## Why?
2011-11-22 19:38:16 +00:00
I got sick of copying jasmine-jquery and sinon to all my projects. Now with one gem, they're all available. It also
makes it easier to copy around your own JS stuff.
2011-10-17 14:41:32 +00:00
## Warnings from the bleeding edge
So early in its development! I'm just bundling these libraries together, and if you want a newer version or a new library included,
do a pull request!