Created
September 3, 2012 01:36
-
-
Save seventhsense/3606119 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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