Skip to content

Commit add765e

Browse files
committed
Remove documentation about rules that are now enforced by RuboCop
RuboCop is _living_ documentation! ✨ [ci skip]
1 parent c8b8024 commit add765e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

doc/development/testing.md

-6
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,10 @@ Please consult the [dedicated "Frontend testing" guide](./fe_guide/testing.md).
188188
### General Guidelines
189189

190190
- Use a single, top-level `describe ClassName` block.
191-
- Use `described_class` instead of repeating the class name being described
192-
(_this is enforced by RuboCop_).
193191
- Use `.method` to describe class methods and `#method` to describe instance
194192
methods.
195193
- Use `context` to test branching logic.
196-
- Use multi-line `do...end` blocks for `before` and `after`, even when it would
197-
fit on a single line.
198194
- Don't assert against the absolute value of a sequence-generated attribute (see [Gotchas](gotchas.md#dont-assert-against-the-absolute-value-of-a-sequence-generated-attribute)).
199-
- Don't supply the `:each` argument to hooks since it's the default.
200-
- Prefer `not_to` to `to_not` (_this is enforced by RuboCop_).
201195
- Try to match the ordering of tests to the ordering within the class.
202196
- Try to follow the [Four-Phase Test][four-phase-test] pattern, using newlines
203197
to separate phases.

0 commit comments

Comments
 (0)