Skip to content

Instantly share code, notes, and snippets.

@jeantessier
Last active January 2, 2024 07:48
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 jeantessier/de24bae601a0af20de76719bea9b436c to your computer and use it in GitHub Desktop.
Save jeantessier/de24bae601a0af20de76719bea9b436c to your computer and use it in GitHub Desktop.
Rails [Application Template](https://guides.rubyonrails.org/rails_application_templates.html) to add RSpec as the testing framework
#
# To use this temlate, which sets RSpec as the testing framework:
#
# rails new my-app --skip-test -m ~/rspec_template.rb
#
gem_group :development, :test do
gem "rspec-rails"
end
generate "rspec:install"
after_bundle do
run "bundle binstubs rspec-core"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment