-
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 - Samantha #30
base: master
Are you sure you want to change the base?
Conversation
end | ||
|
||
# Wave 4 - mark task as complete | ||
def complete |
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.
Consider how making two separate methods, for instance mark_complete
and mark_incomplete
would make this action idempotent. Currently when you click the complete button on a completed event, it marks the task as incomplete.
|
||
<ul> | ||
<% @tasks.each do |task| %> | ||
<li><h3><%= link_to task.name, task_path(task) %></h3> |
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.
Consider adding some styling (such as a strikethrough) for a completed event.
post complete_task_path(existing_task.id) | ||
}.wont_change "Task.count" | ||
|
||
expect(Task.find_by(id: existing_task.id).name).must_equal "completed task" |
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.
Consider edge cases with an invalid id.
Task ListWhat We're Looking For
|
Task List
Congratulations! You're submitting your assignment!
Comprehension Questions