Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save catm705/10010300 to your computer and use it in GitHub Desktop.
Save catm705/10010300 to your computer and use it in GitHub Desktop.
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'
end
# bundle install
# rails g rspec:init
# rails g rspec:install
# bundle exec guard init
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment