public
Created

Password Reset Spec

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6
it "successfully logs out" do
visit root_path
click_link "Log Out"
visit login_path
save_and_open_page
end

1) PasswordResets successfully logs out
Failure/Error: click_link "Log Out"
Capybara::ElementNotFound:
no link with title, id or text 'Log Out' found
# (eval):2:in click_link'
# ./spec/requests/password_resets_spec.rb:12:in
block (2 levels) in '

replace click_link with click_on - just wondering :P

Still fails. I think it's because the session is not the problem. I can get to the login page using click_link "Log In", it's just that visit login_path doesn't work

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.