Skip to content

Instantly share code, notes, and snippets.

@seventhsense
Created September 3, 2012 01:36
Show Gist options
  • Save seventhsense/3606119 to your computer and use it in GitHub Desktop.
Save seventhsense/3606119 to your computer and use it in GitHub Desktop.
%w(
rspec-rails
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'
run 'echo "--drb" >> .rspec'
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."
# run 'spork &'
# puts ''
# puts '-------------------Running spork in Background process--------------------'
# puts 'if you want to stop the spork process, use kill command'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment