-
Notifications
You must be signed in to change notification settings - Fork 45
Mary Amper Grocery #41
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
base: master
Are you sure you want to change the base?
Conversation
Grocery StoreWhat We're Looking For
In order to get Your project looks great overall. It hits all of the requirements and your code looks good, and is clean. Your tests are also slim, thorough, accurate, and concise. I think your project was written pretty well overall. I think my only comment would be that in your online order spec, you use the local variable Great job, Mary! |
specs/online_order_spec.rb
Outdated
| Grocery::OnlineOrder.find("1").products.must_equal ({"Lobster" => "17.18", "Annatto seed" => "58.38", "Camomile" => "83.21"}) | ||
|
|
||
| Grocery::OnlineOrder.find("1").customer.must_equal "25" | ||
| Grocery::OnlineOrder.find("1").status.must_equal :complete |
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.
since this test finds the same order a bunch of times, you probably could just assign a local variable like you do in a lot of the other tests:
order = Grocery::OnlineOrder.find("1")
order.must_be_instance_of Grocery::OnlineOrder
order.products.must_equal ...
Grocery Store
Congratulations! You're submitting your assignment.
Comprehension Questions
raise ArgumentError?.all&.findmethods class methods? Why not instance methods?