Last active
January 2, 2024 07:48
-
-
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
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
# | |
# 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