看板 [ Ruby ]
討論串[問題] Rails 3 測試view render
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者egist (Egist)時間14年前 (2010/10/08 23:32), 編輯資訊
0
0
1
內容預覽:
自問自答 XD. 似乎是因為funcitonal test沒有follow redirect,所以reponse內容只有. 一行,如下:. <html>. <body>You are being <a href="http://test.host/">redirected</a>.</body>.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者egist (Egist)時間14年前 (2010/10/08 20:59), 編輯資訊
0
0
0
內容預覽:
最近在練習rails的各種測試,不過遇到了一點問題 Orz. 程式主要內容是讓使用者填寫註冊資料並送出,如果註冊成功. 會寫入flash[:notice]並redirect到首頁並顯示flash訊息。. 在rails的測試程式中,我用assert_select去確認,flash是不是有被正確顯示。.
(還有1380個字)
首頁
上一頁
1
下一頁
尾頁