Browse files

updating the 'rake features' task so that I can pass it commands like…

… 'rake features tag=wip'
  • Loading branch information...
1 parent 2a69ba6 commit d08c2324ab9783a815b36f41e6ddb744a2913327 @davidalpert committed Sep 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 rakefile
View
4 rakefile
@@ -206,7 +206,7 @@ task :integration => ["clean", "build:all", "test:integration"]
desc "Run acceptance tests (scripted features)"
task :features, [:tag] do |t, args|
- Rake::Task["test:features"].invoke(args.tag)
+ Rake::Task["test:features"].invoke(nil,args.tag)
end
namespace :test do
@@ -265,7 +265,7 @@ namespace :test do
end
Cucumber::Rake::Task.new(:run_features) do |task|
- task.cucumber_opts = ['features']
+ task.cucumber_opts = ['features', '-t', "@#{ENV["TAG"] || "all" }"]
end
Cucumber::Rake::Task.new(:run_wip_features) do |task|

0 comments on commit d08c232

Please sign in to comment.