-
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
Queues - Marisol Lopez - Media Ranker #45
base: master
Are you sure you want to change the base?
Conversation
Media RankerWhat We're Looking For
Good work overall! This project was quite big with many moving parts, and it seems most of the core functionality is there. I'm not too worried about the more advanced voting features, but I do want to address your test coverage. You've made a good start on model testing, but I would like to see a little more here. First, for your validations you should be testing why the validations failed. For example: it "requires a title" do
work = Work.new
result = work.valid?
result.must_equal false
work.errors.messages.must_include :title
end The last line ensures that it was in fact the title that was the problem, as opposed to some other validation. Second, I would like to see some testing around the
Writing good tests forces you to follow your code all the way through and think about all the possible states and interactions, and is an excellent learning tool. Make sure you spend some time practicing testing, especially controller testing, in bEtsy! |
Media Ranker
Congratulations! You're submitting your assignment!
Comprehension Questions
session
andflash
? What is the difference between them?