Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Test your javascript in rails within the asset pipeline, with Gerbil!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 vendor
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 gerbil-rails.gemspec
README.md

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.

Installation

Include this gem in your Gemfile:

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, thanks to the support of Cubox.

Thanks to Jasminerice for the inspiration :)

Something went wrong with that request. Please try again.