Skip to content

Instantly share code, notes, and snippets.

@seventhsense
Created September 2, 2012 13:29
Show Gist options
  • Save seventhsense/3598860 to your computer and use it in GitHub Desktop.
Save seventhsense/3598860 to your computer and use it in GitHub Desktop.
%w(
rspec-rails
).each do |pkg|
gem pkg, :group => [:development, :test]
end
%w(
capybara
spork
factory_girl_rails
simplecov
).each do |pkg|
gem pkg, :group => :test
end
generate("rspec:install")
sed = <<EOS
sed -ie "6a\ require 'capybara/rspec'" spec/spec_helper.rb
EOS
run(sed)
run 'spork --bootstrap'
puts "--------------------removing unneeded files...--------------------"
run 'rm public/index.html'
run 'rm public/favicon.ico'
run 'rm app/assets/images/rails.png'
run 'touch README.mkd'
puts "--------------------checking everything into git...--------------------"
git :init
git :add => '.'
git :commit => "-m 'initial commit'"
puts "done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment