learn-co-curriculum / sinatra-secure-password-lab

Other
0 stars 398 forks source link

lab is working but is not passing one test #25

Closed SaraGinsburg closed 6 years ago

SaraGinsburg commented 6 years ago

1) App Logging In displays the user's account page if username and password is given Failure/Error: expect(page.current_path).to eq('/account')

   expected: "/account"
        got: "/login"

   (compared using ==)
 # ./spec/secure_password_spec.rb:73:in `block (3 levels) in <top (required)>'
drakeltheryuujin commented 6 years ago

Hi there,

Raising issues on GitHub should be reserved for problems with the curriculum — not difficulties solving a lab.

The issue here appears to be with your own code. If the error messages in the test suite are not providing enough information for you to diagnose the problem, try the following three things:

  1. Run your code as it is intended to be run. That is, don't simply rely on the test suite to check the functionality of your code — check it yourself! For Ruby code, add some lines to the bottom of the file that call your methods and output verifiable information to the terminal. For Sinatra or Rails applications, fire up your local server and try executing the same actions that the test suite is failing to complete. For JavaScript code, open up your browser's JS console, paste in your code, and play around with your functions and variables.
  2. Use Pry to poke around your Ruby (or Sinatra), Rails, or JavaScript code step-by-step. Check that the values of particular variables are what you expect them to be at various points throughout the program's execution.
  3. Use the Ask a Question (AAQ) feature, where the Technical Coaches (on supported tracks) and fellow community members can help you figure it out. For some tips on how to take full advantage of AAQ, check out this helpful article in the Learn Help Center.

If, after reviewing your code and consulting AAQ, you still feel that this is an issue with the curriculum itself, please reopen the issue and provide more detail about why it's a curriculum issue, the steps needed to reproduce the issue, and any additional relevant information about your development environment (local or IDE).

Thanks! 💙