require 'cucumber/rake/task' cucumber_options = lambda do |t| # if you want to pass some custom options to cucumber, pass them here end Cucumber::Rake::Task.new(:features, &cucumber_options) Cucumber::Rake::FeatureTask.new(:feature, &cucumber_options) namespace :merb_cucumber do task :test_env do Merb.start_environment(:environment => "test", :adapter => 'runner') end end <% if orm == :datamapper %> dependencies = ['merb_cucumber:test_env', 'db:automigrate'] task :features => dependencies task :feature => dependencies <% else %> task :features => 'merb_cucumber:test_env' task :feature => 'merb_cucumber:test_env' <% end %>