-
Notifications
You must be signed in to change notification settings - Fork 27
Time - Haben & Hannah - T #12
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
beccaelenzil
left a comment
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.
Great work on this project. Your code is clear, concise, and well written. You made great choices about custom model methods that helped keep your controllers concise and focused on the task at hand. Your code is well tested. Keep up the hard work!
| end | ||
| end | ||
|
|
||
| describe "check in" 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.
Just as in with checkout, you should check that the rental count does (or doesn't) differ as appropriate when you check in.
| validates :phone, presence: true | ||
| validates :registered_at, presence: true | ||
|
|
||
| def add_checked_out |
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.
Great custom model methods that help make your controller super straightforward.
| let (:shelley) { customers(:customer_1) } | ||
|
|
||
| describe "Validation" do | ||
| it "requires name, address, city, state, postal_code, phone, registered_at" 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.
Remember to include at least one test that's valid, and one that's not. The test that's not should show that it can not create the customer when each of the required fields is missing.
Video Store APIMajor Learning Goals/Code Review
Functional Requirements
Overall Feedback
Code Style Bonus AwardsWas the code particularly impressive in code style for any of these reasons (or more...?)
|
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.