-
Notifications
You must be signed in to change notification settings - Fork 50
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
Leaves - Elizabeth #33
base: master
Are you sure you want to change the base?
Conversation
…m. Wrote new routes.
…g is in my changed files...
Task ListWhat We're Looking For
|
it 'will decrease the count of the tasks in the database by 1' do | ||
expect{delete task_path(@task.id)}.must_differ 'Task.count', -1 | ||
|
||
must_respond_with :redirect |
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.
What if the ID is invalid?
|
||
expect(@task.completion_date).must_be_nil | ||
must_respond_with :redirect | ||
must_redirect_to tasks_path |
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.
What if the ID is invalid?
get '/tasks/:id', to: 'tasks#show', as: 'task' | ||
get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task' | ||
patch '/tasks/:id', to: 'tasks#update' | ||
delete '/tasks/:id', to: 'tasks#destroy' |
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.
In the future, I'd like to see you using resources
to dry this up!
Task List
Congratulations! You're submitting your assignment!
Comprehension Questions