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

Melissa : Edges : MediaRanker- Revisited #31

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

Conversation

melicious-dish
Copy link

No description provided.

@droberts-sea
Copy link

MediaRanker Revisted

What We're Looking For

Feature Feedback
General
Appropriate Tests on WorksController yes
Appropriate Tests on SessionsController missing some
Appropriate Tests on UsersController yes
Completed OAuth yes
Basic Authorization (who can see what) no
Overall Good work overall. Make sure you review testing around authentication and authorization - this isn't something we'll cover further in class, but the concepts (especially mocking) are very useful in the real world.

user = User.new(username: username)
# User doesn't match anything in the DB
# TODO: Attempt to create a new user
user = User.build_from_github(auth_hash)

Choose a reason for hiding this comment

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

This isn't a TODO anymore


it "can successfully log in with github as an existing user" do
# Arrange
# make sure that for some existing user, everything is configured!

Choose a reason for hiding this comment

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

There are some cases missing here. What if it's a new user, or you don't get enough information to make the account?


movie = works(:movie)
id = movie.id
get work_path(id)

Choose a reason for hiding this comment

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

Why not Work.destroy_all? Both simpler, and less dependent on the specific data in your fixtures.

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.

2 participants