-
Notifications
You must be signed in to change notification settings - Fork 28
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
Water - Kareha & Hanh #17
base: master
Are you sure you want to change the base?
Conversation
Rideshare RailsMajor 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...?)
|
return 0 | ||
end | ||
|
||
def change_status |
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.
Cool that y'all tried out making an additional custom model method!
describe "can go online" do | ||
# Your code here | ||
it "returns float" do | ||
expect(@driver.total_revenue).must_be_kind_of Float |
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.
The tests in driver are quite thorough for the most part! This is an opportunity for improvement, where you could test the exact value of the revenue.
expect(@driver.total_revenue).must_be_kind_of Float | |
expect(@driver.total_revenue).must_be_kind_of Float | |
expect(@driver.total_revenue).must_equal 7568 |
<%= f.label :available %> | ||
<%= f.text_field :available%> |
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.
This is a little awkward as a text field. There's some implicit conversion the ruby code is doing when it sends it along to the model. If a user enters "no" into that field, it will get saved as true.
This reverts commit abc6acb.
Assignment Submission: Rideshare Rails
Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions. These questions should be answered by all team members together, not by a single teammate.
Reflection