Last active
January 4, 2018 02:03
-
-
Save nishisuke/a0dc642c36c3110cc0265b0f0212e6e5 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
gem 'slim-rails' | |
gem_group :development, :test do | |
gem 'rspec-rails', '~> 3.6' | |
gem 'factory_bot_rails' | |
end | |
insert_into_file '.gitignore', <<~EOT, after: "/.bundle\n" | |
/vendor/bundle | |
# Ignore compiled assets | |
/public/assets | |
EOT | |
insert_into_file 'config/environments/development.rb', <<EOT, after: "Rails.application.configure do\n" | |
config.generators do |g| | |
g.assets false | |
g.helper false | |
g.test_framework false | |
g.system_tests false | |
g.jbuilder false | |
end | |
EOT | |
after_bundle do | |
generate 'rspec:install' | |
insert_into_file 'spec/rails_helper.rb', <<EOT, after: "RSpec.configure do |config|\n" | |
config.include FactoryBot::Syntax::Methods | |
EOT | |
rake 'db:create' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment