Rakefile in mechanical-cuke-0.4.3 vs Rakefile in mechanical-cuke-0.5.0
- old
+ new
@@ -15,10 +15,11 @@
gem.add_runtime_dependency "launchy", ">= 0.3.3"
gem.add_development_dependency "open4", ">= 0.9.6"
gem.add_development_dependency "cucumber-rails", ">= 0.2.4"
gem.add_development_dependency "mocha", ">= 0.9.8"
gem.add_development_dependency "sinatra", ">= 1.0"
+ gem.add_development_dependency "capybara", "0.3.9"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
@@ -52,9 +53,18 @@
task :cucumber => :check_dependencies
Cucumber::Rake::Task.new(:wip, 'Run features that are in progress') do |t|
t.cucumber_opts = "--tags @wip:3 --wip features"
end
+
+ Cucumber::Rake::Task.new(:capybara, 'Run features against Capybara') do |t|
+ t.cucumber_opts = "CAPYBARA=yes"
+ end
+
+ Cucumber::Rake::Task.new('capybara:wip', 'Run features @wip against Capybara') do |t|
+ t.cucumber_opts = "CAPYBARA=yes --tags @wip:3 --wip features"
+ end
+
rescue LoadError
task :cucumber do
abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
end
end