-
Notifications
You must be signed in to change notification settings - Fork 43
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
Canaan -- carets #31
base: master
Are you sure you want to change the base?
Canaan -- carets #31
Conversation
Media RankerWhat We're Looking For
|
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.
Some minor notes.
greys.valid?.must_equal true | ||
end | ||
|
||
it "will not be true unless it has a title and category" do |
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.
Better to say,
it "is valid with both a title & category" do
let(:greys) {works(:greys)} | ||
let(:work) {Work.new} | ||
|
||
it "must have a title and category to be true" do |
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.
Better to say,
it "is valid with both a title & category" do
describe Vote do | ||
let(:vote) {votes(:one)} | ||
|
||
it "will be valid when user and work are present" do |
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.
You should have a test to make sure that the combination of user/work ids are unique.
@@ -0,0 +1,48 @@ | |||
require "test_helper" | |||
|
|||
describe WorksController do |
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.
Some negative tests for the WorksController are needed, like deleting a work that already exists, and showing a work that doesn't exist, etc.
Media Ranker
Congratulations! You're submitting your assignment!
Comprehension Questions
session
andflash
? What is the difference between them?