作者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