Skip to content

Instantly share code, notes, and snippets.

@sarahmei
Created October 5, 2010 05:53
Show Gist options
  • Save sarahmei/611071 to your computer and use it in GitHub Desktop.
Save sarahmei/611071 to your computer and use it in GitHub Desktop.
run("echo gem \'rake\' >> Gemfile")
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 \'launchy\' >> Gemfile")
run("echo gem \'win32console\' >> Gemfile")
#run("echo gem \'sqlite3-ruby\', :require \=\">\" \'sqlite3\' >> Gemfile")
run("echo end >> Gemfile")
run("bundle install")
generate("rspec:install")
generate("cucumber:install --rspec --capybara")
run("rm -f /c/Ruby192/lib/ruby/gems/1.9.1/specifications/rake.gemspec")
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