Created
January 12, 2012 19:27
-
-
Save Dishwasha/1602521 to your computer and use it in GitHub Desktop.
Add jasmine to default rake task
This file contains 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 'rspec/core' | |
require 'rspec/core/rake_task' | |
require 'jasmine-headless-webkit' | |
# Run Jasmine headless via webkit | |
Jasmine::Headless::Task.new('jasmine:headless') | |
# Add to default rake task | |
if default = Rake.application.instance_variable_get('@tasks')['default'] | |
default.prerequisites.unshift('jasmine:headless') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment