Skip to content
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

Merged
merged 4 commits into from
May 23, 2019
Merged

User story8 and User story11 #110

merged 4 commits into from
May 23, 2019

Conversation

zachlp2016
Copy link

@zachlp2016 zachlp2016 commented May 23, 2019

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.

@zachlp2016 zachlp2016 changed the title User story8 User story8 and User story11 May 23, 2019
@WHomer
Copy link

WHomer commented May 23, 2019

resolves issues -> #72 #75


click_button('Login')

save_and_open_page
Copy link
Owner

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 %>
Copy link
Owner

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.

@WHomer WHomer merged commit c5907e0 into master May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants