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

Log in feature #6

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Log in feature #6

wants to merge 17 commits into from

Conversation

Odeane
Copy link

@Odeane Odeane commented Jun 25, 2020

PT board URL

User Story

As a user
In order to send messages
I want to be able to log in.

Changes proposed in this pull request:

  • Using factory robot to create a user
  • entered email address
  • Entered password
  • sad path testing

What I have learned working on this feature:

  • We learn how to create a 'decoy' with factory bot.
  • Adding testing frameworks.
  • Testing for features with rspec

Packages/Gems added

  • capybara
  • rspec rails
  • shoulda-matchers
  • factory bot rails
  • coveralls

@Odeane Odeane changed the title Log in feature VIP Log in feature Jun 25, 2020
@Odeane Odeane changed the title VIP Log in feature Log in feature Jun 25, 2020
Copy link

@emtalen emtalen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good jobb overall, look over the formatting! And rewrite the sad path to a more realistic scenario, that a user puts in the wrong password for example.

.rspec Show resolved Hide resolved
Gemfile Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
spec/factories/user.rb Show resolved Hide resolved
spec/feature/user_can_log_in_feature_spec.rb Show resolved Hide resolved
spec/feature/user_can_log_in_feature_spec.rb Show resolved Hide resolved
spec/models/user_spec.rb Show resolved Hide resolved
end
end


Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this file if you are not using it.

spec/feature/user_can_log_in_feature_spec.rb Outdated Show resolved Hide resolved
Copy link

@emtalen emtalen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still have some formatting to do, I recommend that you install a Ruby formatter so you can have a shortcut to formatting. I use Solargraph but you guys can just search for a formatter in the extensions to find one you like

spec/feature/user_can_log_in_feature_spec.rb Outdated Show resolved Hide resolved
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.

3 participants