Class: OpenHood::Rake::CucumberTask

Inherits:
Cucumber::Rake::Task
  • Object
show all
Defined in:
lib/openhood/rake/cucumber.rb

Instance Method Summary collapse

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