You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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_).
193
191
- Use `.method` to describe class methods and `#method` to describe instance
194
192
methods.
195
193
- 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.
198
194
- 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_).
201
195
- Try to match the ordering of tests to the ordering within the class.
202
196
- Try to follow the [Four-Phase Test][four-phase-test] pattern, using newlines
0 commit comments