Created
October 7, 2015 09:05
-
-
Save lulalala/9c41cf21106c2c5be3cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
login(user) | |
expect(page).to have_content("Logged in") | |
visit foo_path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
因為資訊有點少,所以 visit foo_path 之後測的是 user session 的值還是 view 呢?
如果同樣還是測 expect(page).to have_content("Logged in")
這應該是 flash message 吧,再 redirect 到其他 path 應該就消失了