File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1738,6 +1738,23 @@ Bundler.require(platform)
17381738Do not remove the `Gemfile.lock` from version control.
17391739This is not some randomly generated file - it makes sure that all of your team members get the same gem versions when they do a `bundle install`.
17401740
1741+ == Testing
1742+
1743+ === Integration Testing
1744+
1745+ Prefer integration style controller tests over functional style controller tests, https://api.rubyonrails.org/v7.0.0/classes/ActionController/TestCase.html[as recommended in the Rails documentation].
1746+
1747+ [source,ruby]
1748+ ----
1749+ # bad
1750+ class MyControllerTest < ActionController::TestCase
1751+ end
1752+
1753+ # good
1754+ class MyControllerTest < ActionDispatch::IntegrationTest
1755+ end
1756+ ----
1757+
17411758== Managing Processes
17421759
17431760=== Foreman [[foreman]]
You can’t perform that action at this time.
0 commit comments