summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-08-10 18:33:44 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-08-10 19:29:42 -0400
commitadd765e62313e15f0fbc9d0a18993e4096db5ab2 (patch)
treef849d9712967e5324cd5353290baf9cfc3c3ee37
parentc8b802471bcb6ea9ea7af3c7a139598a1f945230 (diff)
downloadgitlab-ce-rs-rspec-hook-argument-cop.tar.gz
Remove documentation about rules that are now enforced by RuboCoprs-rspec-hook-argument-cop
RuboCop is _living_ documentation! :sparkles: [ci skip]
-rw-r--r--doc/development/testing.md6
1 files changed, 0 insertions, 6 deletions
diff --git a/doc/development/testing.md b/doc/development/testing.md
index 3d5aa3d45e9..ea94c87d8c6 100644
--- a/doc/development/testing.md
+++ b/doc/development/testing.md
@@ -188,16 +188,10 @@ Please consult the [dedicated "Frontend testing" guide](./fe_guide/testing.md).
### General Guidelines
- Use a single, top-level `describe ClassName` block.
-- Use `described_class` instead of repeating the class name being described
- (_this is enforced by RuboCop_).
- Use `.method` to describe class methods and `#method` to describe instance
methods.
- Use `context` to test branching logic.
-- Use multi-line `do...end` blocks for `before` and `after`, even when it would
- fit on a single line.
- 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)).
-- Don't supply the `:each` argument to hooks since it's the default.
-- Prefer `not_to` to `to_not` (_this is enforced by RuboCop_).
- Try to match the ordering of tests to the ordering within the class.
- Try to follow the [Four-Phase Test][four-phase-test] pattern, using newlines
to separate phases.