Sha256: 02c9482c54014af6ecf438f25af8e4bdeb188c2c03e08e15aa5abba047e9fc8a

Contents?: true

Size: 678 Bytes

Versions: 17

Compression:

Stored size: 678 Bytes

Contents

require 'cucumber/rake/task'

desc "Run features"
Cucumber::Rake::Task.new(:cucumber => [:cucumber_test_app]) do |t|
  t.cucumber_opts = ['--format', 'pretty', '--require', 'features']
end

desc "setup a rails app for running cucumber"
file "cucumber_test_app" do
  puts "** setting up cucumber test app ** (rails 2.3 only at present)"
  Rake::Task['cucumber:setup'].invoke
end

namespace :cucumber do
  task :setup do
    rm_rf "cucumber_test_app"
    sh "rails cucumber_test_app"
    cd "cucumber_test_app" do
      sh "script/generate rspec"
      sh "script/generate cucumber"
    end
    sh "ln -s #{File.expand_path('.')} cucumber_test_app/vendor/plugins/pickle"
  end
end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
pickle-0.4.4 Rakefile.d/cucumber.rake
judit-pickle-0.4.2 Rakefile.d/cucumber.rake
pickle-0.4.3 Rakefile.d/cucumber.rake
pickle-has_many_support-0.4.2 Rakefile.d/cucumber.rake
pickle-0.4.2 Rakefile.d/cucumber.rake
pickle-0.4.1 Rakefile.d/cucumber.rake
pickle-0.4.0 Rakefile.d/cucumber.rake
pickle-0.3.5 Rakefile.d/cucumber.rake
pickle-0.3.4 Rakefile.d/cucumber.rake
pickle-0.3.3 Rakefile.d/cucumber.rake
pickle-0.3.2 Rakefile.d/cucumber.rake
pickle-0.3.1 Rakefile.d/cucumber.rake
pickle-has_many_support-0.3.1 Rakefile.d/cucumber.rake
pickle-0.3.0 Rakefile.d/cucumber.rake
pickle-0.2.12 Rakefile.d/cucumber.rake
pickle-0.2.11 Rakefile.d/cucumber.rake
pickle-0.2.10 Rakefile.d/cucumber.rake