Sha256: ed0a6f2be7035195067b4844cc8f412f3a34bc67eedbf9e4b6e621b762b3cac5
Contents?: true
Size: 900 Bytes
Versions: 3
Compression:
Stored size: 900 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 Bundler.with_clean_env do gemfile = "cucumber_test_app/Gemfile" rm_rf "cucumber_test_app" sh "bundle exec rails new cucumber_test_app --skip-javascript --skip-sprockets" sh "echo 'gem \"cucumber-rails\", :require => false' >> #{gemfile}" sh "echo 'gem \"rspec-rails\", \"~>3.0\"' >> #{gemfile}" sh "echo 'gem \"capybara\"' >> #{gemfile}" sh "bundle install --gemfile=#{gemfile}" sh "ln -s ../../.. cucumber_test_app/vendor/plugins/pickle" end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
pickle-0.5.3 | Rakefile.d/cucumber.rake |
spbtv_pickle-0.5.2 | Rakefile.d/cucumber.rake |
spbtv_pickle-0.5.1 | Rakefile.d/cucumber.rake |