Class: Jasmine::Headless::Task
- Inherits:
-
Object
- Object
- Jasmine::Headless::Task
- Includes:
- Rake::DSL
- Defined in:
- lib/jasmine/headless/task.rb
Instance Attribute Summary collapse
-
#colors ⇒ Object
Returns the value of attribute colors.
-
#jasmine_config ⇒ Object
Returns the value of attribute jasmine_config.
-
#keep_on_error ⇒ Object
Returns the value of attribute keep_on_error.
Instance Method Summary collapse
-
#initialize(name = 'jasmine:headless') {|_self| ... } ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(name = 'jasmine:headless') {|_self| ... } ⇒ Task
Returns a new instance of Task.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/jasmine/headless/task.rb', line 8 def initialize(name = 'jasmine:headless') @colors = false @keep_on_error = false @jasmine_config = nil yield self if block_given? desc 'Run Jasmine specs headlessly' task(name) { run_rake_task } create_rails_compliant_task if defined?(Rails) end |
Instance Attribute Details
#colors ⇒ Object
Returns the value of attribute colors.
6 7 8 |
# File 'lib/jasmine/headless/task.rb', line 6 def colors @colors end |
#jasmine_config ⇒ Object
Returns the value of attribute jasmine_config.
6 7 8 |
# File 'lib/jasmine/headless/task.rb', line 6 def jasmine_config @jasmine_config end |
#keep_on_error ⇒ Object
Returns the value of attribute keep_on_error.
6 7 8 |
# File 'lib/jasmine/headless/task.rb', line 6 def keep_on_error @keep_on_error end |