https://github.com/foca/gerbil-rails
Test your javascript in rails within the asset pipeline, with Gerbil!
https://github.com/foca/gerbil-rails
Last synced: 11 months ago
JSON representation
Test your javascript in rails within the asset pipeline, with Gerbil!
- Host: GitHub
- URL: https://github.com/foca/gerbil-rails
- Owner: foca
- License: mit
- Created: 2012-01-23T21:30:17.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-26T14:21:59.000Z (over 14 years ago)
- Last Synced: 2025-07-27T19:02:17.173Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 134 KB
- Stars: 7
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
Gerbil::Rails
=============
This Rails 3.1 engine will make it trivial for you to test your javascript files
taking advantage of Rails 3.1's asset pipeline, and using the awesome
[Gerbil](http://github.com/elcuervo/gerbil).
Installation
------------
Include this gem in your `Gemfile`:
``` ruby
group :development, :test do
gem "gerbil-rails"
end
```
Bundle it up, and run the included generator to set up the test structure:
$ bundle
$ script/rails generate gerbil:install
This will create a `spec/javascripts` directory, which includes a
`spec/javascripts/spec.js` file. Now you can add specs in subdirectories of
`spec/javascripts`.
Once that is done, start your server and head to http://localhost:3000/gerbil to
see your specs running before you.
About
-----
Brought to you by [Nicolás Sanguinetti](http://github.com/foca), thanks to the
support of [Cubox](http://cuboxlabs.com).
Thanks to [Jasminerice](http://github.com/bradphelan/jasminerice) for the
inspiration :)