Skip to content

Instantly share code, notes, and snippets.

@CH-JesseMa
Last active March 24, 2021 04:01
Show Gist options
  • Save CH-JesseMa/10008781 to your computer and use it in GitHub Desktop.
Save CH-JesseMa/10008781 to your computer and use it in GitHub Desktop.
Gem for Development and Test
gem 'rails_12factor'
group :development, :test do
gem 'pry-rails'
gem 'rspec'
gem 'rspec-rails'
gem 'guard'
gem 'guard-rspec'
gem 'guard-bundler', require: false
gem 'terminal-notifier-guard'
gem 'shoulda-matchers'
gem 'capybara'
gem 'factory_girl_rails'
end
# bundle install
# bundle exec rails g rspec:install
# bundle exec guard init:rspec
# In the guard file: guard :rspec, cmd: 'bundle exec rspec’ do
# bundle exec guard
# create spec file e.g. spec/models/user_spec.rb
# run migration: rake db:migrate RAILS_ENV=test
# remember to add require 'capybara/rails' to spec_helper.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment