Skip to content

Instantly share code, notes, and snippets.

@lulalala
Created October 7, 2015 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lulalala/9c41cf21106c2c5be3cc to your computer and use it in GitHub Desktop.
Save lulalala/9c41cf21106c2c5be3cc to your computer and use it in GitHub Desktop.
login(user)
expect(page).to have_content("Logged in")
visit foo_path
@berniechiu
Copy link

因為資訊有點少,所以 visit foo_path 之後測的是 user session 的值還是 view 呢?
如果同樣還是測 expect(page).to have_content("Logged in")
這應該是 flash message 吧,再 redirect 到其他 path 應該就消失了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment