Class: OpenHood::Rake::CucumberTask
- Inherits:
-
Cucumber::Rake::Task
- Object
- Cucumber::Rake::Task
- OpenHood::Rake::CucumberTask
- Defined in:
- lib/openhood/rake/cucumber.rb
Instance Method Summary collapse
-
#initialize(name = :features) ⇒ CucumberTask
constructor
A new instance of CucumberTask.
Constructor Details
#initialize(name = :features) ⇒ CucumberTask
Returns a new instance of CucumberTask.
9 10 11 12 13 14 15 16 |
# File 'lib/openhood/rake/cucumber.rb', line 9 def initialize(name=:features) super(name) do |t| t.fork = true opts = [] opts << ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty'), '-r', 'features'] t.cucumber_opts = opts.join(" ") end end |