Skip to content

Instantly share code, notes, and snippets.

@leemcalilly
Created January 25, 2012 02:33
Show Gist options
  • Save leemcalilly/1674257 to your computer and use it in GitHub Desktop.
Save leemcalilly/1674257 to your computer and use it in GitHub Desktop.
visit /login
it "successfully routes to the login page" do
visit login_path
current_path.should == "/login"
print page.html
end
@leemcalilly
Copy link
Author

rake
/Users/lee/.rvm/rubies/ruby-1.9.3-p0/bin/ruby -S rspec ./spec/requests/password_resets_spec.rb
Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}
F

Failures:

  1. PasswordResets successfully routes to the login page
    Failure/Error: current_path.should == "/login"
    expected: "/login"
    got: "/" (using ==)

    ./spec/requests/password_resets_spec.rb:8:in `block (2 levels) in <top (required)>'

Finished in 0.05733 seconds
1 example, 1 failure

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