Skip to content

Instantly share code, notes, and snippets.

@sarahmei
Forked from ultrasaurus/gist:316450
Created October 4, 2010 05:13
Show Gist options
  • Save sarahmei/609269 to your computer and use it in GitHub Desktop.
Save sarahmei/609269 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/sarahmei/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