-
Notifications
You must be signed in to change notification settings - Fork 38
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
Alena's MediaRanker #26
base: master
Are you sure you want to change the base?
Conversation
Am/testing model
Am/work controller actions
…ks controller index action
am/views works
…he back button reflectsthe cartegory of the work and redirects accordingly
…s and movies controller
am/book album movie controller
am/index pages
…ion in users controller and created show page for users
…me as well suring a session, added header and log in/out to the application.html
…del in a do block, added tests for user model
…on test for votes
…p ten works custom works method
…ion fixed path in test testing delete method
… new in respestice controllers, and tested upvoting
am/more tests
…for show work page
am/foundation
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.
Nice work overall I like how the site looks much like the original.
|
||
it "If a name is given the user is valid" do | ||
user = users(:user_two) | ||
user.valid? |
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.
probably should be user.valid?.must_equal true
end | ||
|
||
it "You can create a user" do | ||
user = users(:user_one) |
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.
Didn't the test above cover this?
|
||
it "should redirect to list after adding an album" do | ||
post albums_path, params: { work: | ||
{ title: "Running with Scissors", |
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.
Great album
proc { | ||
post upvote_path(works(:goldman).id) | ||
}.must_change 'Vote.count', 0 | ||
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.
I would also test the redirect & flash message here!
Media RankerWhat We're Looking For
|
Media Ranker
Congratulations! You're submitting your assignment!
Comprehension Questions
session
andflash
? What is the difference between them?