Created
June 11, 2012 14:53
-
-
Save bjeanes/2910455 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There is apparently no need for the `jasmine.yml` file. Instead have a `spec/javascripts/spec.js(.coffee)` and `spec/javascripts/spec.css` which are wired into asset pipeline. | |
Run jasmine tests with either `rake jasmine` or `guard` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capybara/poltergeist' | |
Capybara.register_driver :poltergeist do |app| | |
Capybara::Poltergeist::Driver.new(app, inspector: !!ENV['INSPECT']) | |
end | |
Capybara.default_driver = :poltergeist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group :development do | |
gem 'guard', :require => false | |
end | |
group :development, :test do | |
gem 'jasminerice', :git => 'git://github.com/noelrappin/jasminerice.git' # for Jasmine 1.2 | |
gem 'guard-jasmine' | |
end | |
group :test do | |
gem 'poltergeist' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc 'Run Jasmine tests headlessly' | |
task 'jasmine' do | |
require 'guard/jasmine/task' | |
Guard::JasmineTask.new do |task| | |
task.options = '-e test' | |
end | |
Rake::Task['guard:jasmine'].invoke | |
end | |
desc "Alias for jasmine" | |
task 'jasmine:headless' => ['guard:jasmine'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment