Permalink
Browse files

Add rake cucumber:wip:rails* tasks for work-in-progress features

  • Loading branch information...
1 parent afbea50 commit d6376fc9bb87f11b62c7d3ae06d2524b318ddf35 @jasonm jasonm committed Mar 10, 2010
Showing with 11 additions and 2 deletions.
  1. +11 −2 Rakefile
View
@@ -191,18 +191,27 @@ end
task :cucumber => [:gemspec, :vendor_test_gems]
-namespace :cucumber do
+def define_rails_cucumber_tasks(additional_cucumber_args = '')
namespace :rails do
RAILS_VERSIONS.each do |version|
desc "Test integration of the gem with Rails #{version}"
task version do
puts "Testing Rails #{version}"
ENV['RAILS_VERSION'] = version
- system("cucumber --format progress features/rails.feature")
+ system("cucumber --format progress #{additional_cucumber_args} features/rails.feature")
end
end
desc "Test integration of the gem with all Rails versions"
task :all => RAILS_VERSIONS
end
end
+
+namespace :cucumber do
+ namespace :wip do
+ define_rails_cucumber_tasks('--tags @wip')
+ end
+
+ define_rails_cucumber_tasks
+end
+

0 comments on commit d6376fc

Please sign in to comment.