Commit 39378d0e authored by Rémy Coutable's avatar Rémy Coutable Committed by Robert Speicher

Document that we always use `do...end` for `before` in RSpec

[ci skip]
Signed-off-by: default avatarRémy Coutable <>
parent 6f7ce372
......@@ -63,6 +63,8 @@ the command line via `bundle exec teaspoon`, or via a web browser at
- Use `.method` to describe class methods and `#method` to describe instance
- 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 `describe` symbols (see [Gotchas](
- Don't assert against the absolute value of a sequence-generated attribute (see [Gotchas](
- Don't supply the `:each` argument to hooks since it's the default.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment