rails_generators/cucumber/templates/cucumber.rake in cucumber-0.3.9 vs rails_generators/cucumber/templates/cucumber.rake in cucumber-0.3.10
- old
+ new
@@ -3,10 +3,10 @@
begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |t|
t.fork = true
- t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
+ t.cucumber_opts = [<%= options[:spork] ? "'--drb', " : "" %>'--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
end
task :features => 'db:test:prepare'
rescue LoadError
desc 'Cucumber rake task not available'
task :features do