Skip to content
代码片段 群组 项目
提交 df9a7c6b 编辑于 作者: Robert Speicher's avatar Robert Speicher
浏览文件

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

[ci skip]
上级 56c49f4f
No related branches found
No related tags found
无相关合并请求
......@@ -64,6 +64,7 @@ the command line via `bundle exec teaspoon`, or via a web browser at
methods.
- Use `context` to test branching logic.
- 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`.
- 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
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册