Skip to content

Uses capybara to run jasmine specs with jasminerice and rails asset pipeline

Notifications You must be signed in to change notification settings

strchives/jasminerice-runner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jasminerice-runner

Uses capybara to run jasmine specs with jasminerice and rails asset pipeline

Usage

Add it to your Gemfile

gem "jasminerice-runner"

Add this to your spec.js:

#= require jasminerice_reporter

Then, run the rake task

rake jasminerice:run

To switch drivers, in a config/initializer

Jasminerice::Runner.capybara_driver = :webkit

Default driver is :selenium

Using Multiple Jasmine Environments

If your app has multiple jasmine environments, you can specify the runner to only run jasmine tests for that environment. Adding an environment will run the file "#{ENVIRONMENT}_spec.js". The default spec file (spec.js) will be run if no environment is specified.

For example, if you wanted to run all specs in admin_spec.js the rake task would be:

rake jasminerice:run["admin"]

About

Uses capybara to run jasmine specs with jasminerice and rails asset pipeline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 80.9%
  • CoffeeScript 19.1%