-
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
Alena's Ride Share #29
base: master
Are you sure you want to change the base?
Conversation
…rning nil for no results
…driver or rider doesn't exist
Ride ShareWhat We're Looking For
SummaryVery well done, good use of Enumerable & excellent job with nominial & edge-case testing. |
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 a small note
it "Returns a correct number of drivers for a specific rider" do | ||
rider = Rider.new(41, "Ms. Westley Pouros", "133.000.1809 x9028") | ||
rider.list_drivers.length.must_equal 2 | ||
rider.list_drivers.length.wont_equal rider.list_trips.length |
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.
Will this always be the case?
It's possible, given a different file that this test could fail.
it "Allows rating only within acceptable range (1 - 5)" do | ||
proc { | ||
Trip.new(12, 21, 382, "2016-01-04", 0) | ||
}.must_raise InvalidRatingError |
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.
What about negative ratings?
Ride Share
Congratulations! You're submitting your assignment!
Comprehension Questions