create a railtie to have tasks appear automatically
This commit is contained in:
parent
9ede8f2148
commit
ea0b00e4dc
@ -1,6 +1,6 @@
|
||||
## 0.2.0
|
||||
|
||||
* Add a Rake task
|
||||
* Add a Rake task and a default task for Rails
|
||||
* Global runner configuration via ~/.jasmine-headless-webkit
|
||||
* Custom Jasmine reporter for better user feedback
|
||||
* Specify the specs to be run, instead of always running them all
|
||||
|
@ -5,3 +5,5 @@ module Jasmine
|
||||
end
|
||||
end
|
||||
|
||||
require 'jasmine/headless/railtie' if defined?(Rails)
|
||||
|
||||
|
14
lib/jasmine/headless/railtie.rb
Normal file
14
lib/jasmine/headless/railtie.rb
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user