Queues - Marisol Lopez - Media Ranker#45
Queues - Marisol Lopez - Media Ranker#45marisol-lopez wants to merge 23 commits intoAda-C7:masterfrom
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
endThe 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
sessionandflash? What is the difference between them?