Open
Conversation
…ut is only showing movie id.
Customers
Added column movies_checkout_out_count to customers table
…e with available_inventory numbers.
…mers_controller_test so that keys are correctly alphabetized. All tests passing.
…validations passing.
…ried changing error handling in rentals controller but reverted to original code, struggling with getting tests to pass in rentals controller test.
…smoke tests to fail.
… chatter and now Wave 2 smoke tests are passing again.
…rect. Passing first two rentals controller tests.
…y can't be checked out is passing.
…idation for rentals, which throws off tests. Commenting out until Sara and I talk about this.
…igration to add this column to schema.
…that all tests are still passing.
…te is calculated in rentals_controller, considered adding due_date method to rental model but decided against it. Rentals controller due date test now passing.
…tal model tests for validations, all passing.
Video StoreWhat We're Looking For
|
jmaddox19
reviewed
Nov 14, 2019
|
|
||
| describe RentalsController do | ||
|
|
||
| describe "check out" do |
There was a problem hiding this comment.
None of your tests here check for a decrease in available_inventory, which would've caught the problem that the smoke tests surface.
There was a problem hiding this comment.
...at least that's my assumption about where the bug is based on the error message I'm seeing on the checkin API
|
Oh another note, the movies index page produced an error when there were no movies. This is an edge case a unit test for that edge case would've caught. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.