Skip to content

Instantly share code, notes, and snippets.

@josephwilk
Created February 24, 2011 17:28
Show Gist options
  • Select an option

  • Save josephwilk/842503 to your computer and use it in GitHub Desktop.

Select an option

Save josephwilk/842503 to your computer and use it in GitHub Desktop.
require 'rubygems'
begin
require 'cucumber'
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "--format pretty"
end
task :features => 'db:test:prepare'
rescue LoadError
desc 'Cucumber rake task not available'
task :features do
abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment