-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User story8 and User story11 #110
Conversation
|
||
click_button('Login') | ||
|
||
save_and_open_page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just make sure to remove this on the next PR @zachlp2016
@@ -1,3 +1,7 @@ | |||
<% @user.errors.full_messages.each do |msg| %> | |||
<%= msg %> | |||
<% end %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
High Level: Rails pipes missing/incorrect fields as errors into the User , which can then be printed on the View.
What does this PR do?
Adds spec to verify that if fields are blank on forms, and error message will output stating that the fields can't be blank.
This also adds a small user story that verifies that the login outputs an error message.