Skip to content

Instantly share code, notes, and snippets.

@awead
Last active February 8, 2022 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awead/9ffb76ee8597132cd82f26b7e424ebc4 to your computer and use it in GitHub Desktop.
Save awead/9ffb76ee8597132cd82f26b7e424ebc4 to your computer and use it in GitHub Desktop.
Rails template with RSpec for Ruby on Rails Tutorial
add_source 'https://rubygems.org'
gem 'bootsnap', '>= 1.4.4', require: false
gem 'jbuilder', '~> 2.7'
gem 'puma', '~> 5.0'
gem 'rails', '~> 6.1.4', '>= 6.1.4.4'
gem 'sass-rails'
gem 'turbolinks', '~> 5'
gem 'webpacker', '~> 5.0'
gem_group :development, :test do
gem 'pry-byebug', platform: :mri
gem 'sqlite3', '~> 1.4'
end
gem_group :development do
gem 'listen', '~> 3.3'
gem 'rack-mini-profiler', '~> 2.0'
gem 'spring'
gem 'web-console', '>= 4.1.0'
end
gem_group :test do
gem 'capybara'
gem 'rspec'
gem 'rspec-its'
gem 'rspec-rails'
gem 'selenium-webdriver'
gem 'webdrivers'
end
gem_group :production do
gem 'pg'
end
run "bundle config set --local without 'production'"
run "bundle install"
environment 'config.generators { |generator| generator.test_framework :rspec }'
run 'rm -Rf test'
after_bundle do
run "bundle exec rails db:migrate"
run "bundle exec rails webpacker:install"
run "yarn install --check-files"
generate "rspec:install"
git :init
git add: "."
git commit: %Q{ -m 'Initial Rails application setup' }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment