Home > other >  Capybara integration view testing not reading the correct data -ruby on rails
Capybara integration view testing not reading the correct data -ruby on rails

Time:03-26

https://github.com/adamteddychang/The-Budget/tree/view-testing

All the fields are filled out accordingly User can be created successfully in the rails console with the same parameters but unable to log in with the same credentials in the testing environment The ran test that says invalid login credentials even the credentials are the same

The app is working completely fine, it is just not working in testing

CodePudding user response:

you are using Devise gem. You are visiting the user_session_path, but by Devise default it should be new_user_session_path.

Just change user_session_path

To: new_user_session_path

  • Related