-
Notifications
You must be signed in to change notification settings - Fork 47
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
base: master
Are you sure you want to change the base?
Conversation
MediaRanker RevistedWhat We're Looking For
|
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) |
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.
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! |
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.
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) |
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.
Why not Work.destroy_all
? Both simpler, and less dependent on the specific data in your fixtures.
No description provided.