Commit 9864b2db authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch 'rs-each-arg' into 'master'

Add a note to testing docs about the `:each` argument to RSpec hooks

[ci skip]

See merge request !4061
...@@ -64,6 +64,7 @@ the command line via `bundle exec teaspoon`, or via a web browser at ...@@ -64,6 +64,7 @@ the command line via `bundle exec teaspoon`, or via a web browser at
methods. methods.
- Use `context` to test branching logic. - Use `context` to test branching logic.
- Don't `describe` symbols (see [Gotchas](gotchas.md#dont-describe-symbols)). - Don't `describe` symbols (see [Gotchas](gotchas.md#dont-describe-symbols)).
- Don't supply the `:each` argument to hooks since it's the default.
- Prefer `not_to` to `to_not`. - Prefer `not_to` to `to_not`.
- Try to match the ordering of tests to the ordering within the class. - 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 - Try to follow the [Four-Phase Test][four-phase-test] pattern, using newlines
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment