Skip to content

Instantly share code, notes, and snippets.

@andrew-carroll
Created April 3, 2015 14:42
Show Gist options
  • Save andrew-carroll/b0becfc6739bf73e261a to your computer and use it in GitHub Desktop.
Save andrew-carroll/b0becfc6739bf73e261a to your computer and use it in GitHub Desktop.
gsub_file "Gemfile", /^\#.*\n/, ''
gsub_file "Gemfile", /^\n/, ''
gem_group :development, :test do
gem 'rspec-rails'
gem 'capybara'
gem 'factory_girl_rails'
end
gem 'slim-rails'
gem 'bootstrap-sass'
after_bundle do
generate :'rspec:install'
insert_into_file 'spec/rails_helper.rb', "require 'capybara/rspec'\n",
after: "# Add additional requires below this line. Rails is not loaded until this point!\n"
remove_dir "test"
git :init
git add: '.'
git commit: %Q{ -m 'Initial Commit' }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment