0
我有我的情況如下:我怎樣才能得到webrat跟隨重定向
And I click the link Log out
Then I should see the login page
點擊Log out
鏈接會將用戶帶到/ log_out,會被重定向回到登錄頁面。 Webrat失敗,因爲它正在尋找「登錄」,但log_out頁面是空的(這只是一個codeigniter功能,它會破壞會話並重定向到/)
什麼是使webrat意識到它需要閱讀重定向結束頁面?