Earth - Ting-Yi and Sophie - OO Ride Share#3
Open
steve-messing wants to merge 10 commits intoAda-C14:masterfrom
Open
Earth - Ting-Yi and Sophie - OO Ride Share#3steve-messing wants to merge 10 commits intoAda-C14:masterfrom
steve-messing wants to merge 10 commits intoAda-C14:masterfrom
Conversation
…for trip_dispatcher on line 33. wrote a list of tests to be written.
dHelmgren
reviewed
Oct 14, 2020
dHelmgren
left a comment
There was a problem hiding this comment.
OO Ride Share
Major Learning Goals/Code Review
| Criteria | yes/no, and optionally any details/lines of code to reference |
|---|---|
The code demonstrates individual learning about Time and the responsibility of Trip.from_csv, and uses Time.parse in Trip.from_csv |
✔️ |
The code demonstrates breaking out complex logic in helper methods, such as making a helper method in Trip to calculate duration |
✔️ |
There are tests for the nominal cases for the Passenger#net_expenditures and Passenger#total_time_spent |
✔️ |
There is at least one edge case test for either Passenger#net_expenditures or Passenger#total_time_spent testing if the passenger has no trips |
✔️ |
Practices inheritance. Driver inherits from CsvRecord, and implements from_csv |
✔️ |
Employs problem-solving and implements Driver#average_rating and Driver#total_revenue |
✔️ |
Implements the TripDispatcher#request_trip, which creates an instance of Trip with a driver and passenger, adds the new trip to @trips, and changes the status of the driver |
✔️ |
Practices composition. In TripDispatcher#request_trip, the driver gets connected to the new trip, the passenger gets connected to the new trip |
✔️ |
| Practices git with at least 10 small commits and meaningful commit messages | ✔️ |
Testing Requirements
a
| Testing Requirement | yes/no |
|---|---|
| There is reasonable test coverage for wave 1, and all wave 1 tests pass | ✔️ |
| There is reasonable test coverage for wave 2, and all wave 2 tests pass | ✔️ |
| Wave 3: Tests in wave 1 and wave 2 explicitly test that only completed trips should be calculated (and ignore in-progress trips) | ✔️ |
There is reasonable test coverage for TripDispatcher#request_trip, and all tests pass |
✔️ |
Overall Feedback
| Overall Feedback | Criteria | yes/no |
|---|---|---|
| Green (Meets/Exceeds Standards) | 8+ in Code Review && 3+ in Functional Requirements | ✔️ |
| Yellow (Approaches Standards) | 6+ in Code Review && 2+ in Functional Requirements | |
| Red (Not at Standard) | 0-5 in Code Review or 0,1 in Functional Reqs, or assignment is breaking/doesn’t run with less than 5 minutes of debugging |
Code Style Bonus Awards
Was the code particularly impressive in code style for any of these reasons (or more...?)
| Quality | Yes? |
|---|---|
| Elegant/Clever | ✅ |
| Descriptive/Readable | ✅ |
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.
Assignment Submission: OO Ride Share
Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.
Reflection
Give an example of an edge case test that you wrote for this assignment |
it "raises an error for no driver available" do
array = [6, 7, 3]
What is a concept that you gained more clarity on as you worked on this assignment | Object relations - how to use and access objects that are stored in or related to objects from other classes, and how to write tests!