create a railtie to have tasks appear automatically

This commit is contained in:
John Bintz 2011-05-17 10:41:51 -04:00
parent 9ede8f2148
commit ea0b00e4dc
3 changed files with 17 additions and 1 deletions

View File

@ -1,6 +1,6 @@
## 0.2.0 ## 0.2.0
* Add a Rake task * Add a Rake task and a default task for Rails
* Global runner configuration via ~/.jasmine-headless-webkit * Global runner configuration via ~/.jasmine-headless-webkit
* Custom Jasmine reporter for better user feedback * Custom Jasmine reporter for better user feedback
* Specify the specs to be run, instead of always running them all * Specify the specs to be run, instead of always running them all

View File

@ -5,3 +5,5 @@ module Jasmine
end end
end end
require 'jasmine/headless/railtie' if defined?(Rails)

View File

@ -0,0 +1,14 @@
require 'jasmine/headless/task'
module Jasmine
module Headless
class Railtie < Rails::Railtie
rake_tasks do
Jasmine::Headless::Task.new do |t|
t.colors = true
end
end
end
end
end