作者egist (Egist)
看板Ruby
标题Re: [问题] Rails 3 测试view render
时间Fri Oct 8 23:31:57 2010
自问自答 XD
似乎是因为funcitonal test没有follow redirect,所以reponse内容只有
一行,如下:
<html>
<body>You are being <a href="
http://test.host/">redirected</a>.</body>
</html>
看来要测最终view的内容的话,应该是要在integration test中做测试?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 219.91.127.135