I\'m running through Michael Hartl\'s Rails Tutorial.
I\'m trying to verify the title of my page. The test looks like this:
it \"should have the rig
This question looks old, which explains why there is now a better way.
The following works well for me:
it "has the correct page title", js: true do visit "/users/sign_in" # for example expect(page.title).to include "Sign In or Create a New Account" end