Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Password Reset Spec
it "successfully logs out" do
visit root_path
click_link "Log Out"
visit login_path

leemcalilly commented Jan 25, 2012

  1. PasswordResets successfully logs out
    Failure/Error: click_link "Log Out"
    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 <top (required)>'

replace click_link with click_on - just wondering :P


leemcalilly commented Jan 25, 2012

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

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