Sha256: 4d8addb2998eaaef3f15da5277b2d292e6765d83f0e2f456bfea20c617d3698e
Contents?: true
Size: 758 Bytes
Versions: 7
Compression:
Stored size: 758 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 **" Rake::Task['cucumber:setup'].invoke end namespace :cucumber do task :setup do rm_rf "cucumber_test_app" sh "rails new cucumber_test_app" cd "cucumber_test_app" do sh "echo 'gem \"cucumber-rails\"' >> Gemfile" sh "echo 'gem \"rspec-rails\"' >> Gemfile" sh "echo 'gem \"capybara\"' >> Gemfile" sh "bundle install" end sh "ln -s #{File.expand_path('.')} cucumber_test_app/vendor/plugins/pickle" end end
Version data entries
7 entries across 7 versions & 1 rubygems