Skip to content

Instantly share code, notes, and snippets.

@evanfarrar
Forked from sarahmei/gist:609269
Created May 7, 2011 14:01
Show Gist options
  • Save evanfarrar/960519 to your computer and use it in GitHub Desktop.
Save evanfarrar/960519 to your computer and use it in GitHub Desktop.
run("echo group :test, :development do >> Gemfile;")
run("echo gem \\'rspec-rails\\', \\'\\>\\= 2.0.0.beta.22\\' >> Gemfile;")
run("echo gem \\'capybara\\' >> Gemfile;")
run("echo gem \\'database_cleaner\\' >> Gemfile;")
run("echo gem \\'cucumber-rails\\' >> Gemfile;")
run("echo gem \\'cucumber\\' >> Gemfile;")
run("echo gem \\'spork\\' >> Gemfile;")
run("echo gem \\'launchy\\' >> Gemfile;")
run("echo end >> Gemfile;")
run("bundle install")
generate("rspec:install")
generate("cucumber:install --rspec --capybara")
rake("db:migrate")
run("rm -rf test")
run("rm -rf features")
git(:clone => "http://github.com/evanfarrar/workshop-features.git")
run("mv workshop-features features")
inside("features") { run("rm -rf .git") }
inside("config") { run("echo default: --format pretty > cucumber.yml") }
run("echo log/ > .gitignore; echo 'db/*.sqlite3' >> .gitignore;")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment