Created
June 15, 2009 19:21
-
-
Save mrichman/130279 to your computer and use it in GitHub Desktop.
cucumber.rake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LOAD_PATH.unshift(RAILS_ROOT + '/vendor/plugins/cucumber/lib') if File.directory?(RAILS_ROOT + '/vendor/plugins/cucumber/lib') | |
begin | |
require 'cucumber/rake/task' | |
Cucumber::Rails.bypass_rescue | |
Cucumber::Rake::Task.new(:features) do |t| | |
t.fork = true | |
t.cucumber_opts = %w{--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