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 @@ -1736,6 +1736,23 @@ Bundler.require(platform)
1736
1736
Do not remove the `Gemfile.lock` from version control.
1737
1737
This 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`.
1738
1738
1739
+ == Testing
1740
+
1741
+ === Integration Testing
1742
+
1743
+ 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].
1744
+
1745
+ [source,ruby]
1746
+ ----
1747
+ # bad
1748
+ class MyControllerTest < ActionController::TestCase
1749
+ end
1750
+
1751
+ # good
1752
+ class MyControllerTest < ActionDispatch::IntegrationTest
1753
+ end
1754
+ ----
1755
+
1739
1756
== Managing Processes
1740
1757
1741
1758
=== Foreman [[foreman]]
You can’t perform that action at this time.
0 commit comments