Permalink
Browse files

Add cucumber rake task, and run it in default task

I was going for :features, but :cucumber is the default task name
suggested by the cucumber gem.
  • Loading branch information...
1 parent 756ec1b commit 4533ebf46674fe818eaf2c36a303be4ae51093fc @joliss joliss committed Jan 26, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 Rakefile
View
@@ -1,5 +1,6 @@
require 'rubygems'
require 'rspec/core/rake_task'
+require 'cucumber/rake/task'
require 'yard'
desc "Run all examples"
@@ -13,4 +14,8 @@ YARD::Rake::YardocTask.new do |t|
#t.options = ['--any', '--extra', '--opts'] # optional
end
-task :default => :spec
+Cucumber::Rake::Task.new(:cucumber) do |task|
+ task.cucumber_opts = ['--format=progress', 'features']
+end
+
+task :default => [:spec, :cucumber]

0 comments on commit 4533ebf

Please sign in to comment.