Skip to content

Commit

Permalink
fix task to use cucumber > 0.3.4 with Merb
Browse files Browse the repository at this point in the history
  • Loading branch information
shingara committed May 24, 2009
1 parent 2290156 commit 13ab272
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/tasks/cucumber.rake
Expand Up @@ -5,6 +5,14 @@ cucumber_options = lambda do |t|
if File.exist? Merb.root / 'bin' / 'cucumber'
t.binary = Merb.root / 'bin' / 'cucumber'
end
t.fork = true

t.cucumber_opts = ''
require_list = Array(FileList[File.join(File.dirname(__FILE__),"../../features/**/*.rb")])
require_list.each do |step_file|
t.cucumber_opts << '--require'
t.cucumber_opts << step_file
end
end

Cucumber::Rake::Task.new(:features, &cucumber_options)
Expand Down

0 comments on commit 13ab272

Please sign in to comment.