-
Notifications
You must be signed in to change notification settings - Fork 27
Space - Nora & Suely #20
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
base: master
Are you sure you want to change the base?
Conversation
…o controller create tests.
Video Store APIMajor Learning Goals/Code Review
Functional Requirements
Overall Feedback
Additional FeedbackGreat work! Y'all made a fully-functional API! And with such clean code and thorough testing! Code Style Bonus AwardsWas the code particularly impressive in code style for any of these reasons (or more...?)
|
| return | ||
| end | ||
|
|
||
| if !rental.checkedin? |
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.
So smart to check this!
| else | ||
| render json: { | ||
| errors: ["Not Found"]}, | ||
| status: :not_found |
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.
There's actually no chance that the request could be bad at this point because the customer_id and video_id have already been verified on line 7. Hence you don't have a unit test that verifies this case.
Assignment Submission: Video Store API
Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.
If you didn't get to the functionality the question is asking about, reply with what you would have done if you had completed it.
Reflection
/customers&/videosendpoints? What does the time complexity depend on? Explain your reasoning.POST /rentals/check-inendpoint? What does the time complexity depend on? Explain your reasoning.