signed_in? function not working in Chapter 8-9 of Rails Tutorial (Hartl)
I have one rspec test failing. 1) User pages edit with valid information should have link "Sign out", {:href=>"/signout"} Failure/Error: it { should have_link('Sign out', href: signout_path) } expected #has_link?("Sign out", {:href=>"/signout"}) to return true, got false # ./spec/requests/user_pages_spec.rb:80:in `block (4 levels) in <top (required)>' The test looks to see if a 'Sign out' link is present in the header after signing in. The code works in a browser but not in rspec. The spec in question is aligned with the Hartl tutorial: describe "User pages" do subject { page } ... describe