提交 675f299c 编写于 作者: R Rafael Mendonça França

Merge pull request #19322 from AndrewHendrie/AndrewHendrie-guides-testing-partials-patch

Asserting partials modification
......@@ -632,7 +632,7 @@ WARNING: You must include the "layouts" directory name even if you save your lay
If your view renders any partial, when asserting for the layout, you can to assert for the partial at the same time.
Otherwise, assertion will fail.
Remember, we added the "_form" partial to our creating Articles view? Let's write an assertion for that in the `:new` action now:
Remember, we added the "_form" partial to our new Article view? Let's write an assertion for that in the `:new` action now:
```ruby
test "new should render correct layout" do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册