-
Notifications
You must be signed in to change notification settings - Fork 37
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
Queues - Cara Comfort - RideShare 2 #35
base: master
Are you sure you want to change the base?
Conversation
Ride ShareWhat We're Looking For
Great job! Code is clear and readable, tests cover everything I was looking for, and git habits look solid. Keep up the good work! |
self.all.find {|driver| driver.id == driver_id} | ||
end | ||
|
||
private |
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.
Good use of private
to hide methods not part of your API.
require_relative 'spec_helper' | ||
|
||
describe "Driver" do | ||
describe "constructor" 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.
Good organization - the nested describes
make this code much easier to read.
end | ||
end | ||
|
||
it "returns an empty array if driver id is undefined" 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.
Good test case! Edge cases like this, asking what happens when there isn't any data, can be easy to miss.
Ride Share
Congratulations! You're submitting your assignment!
Comprehension Questions