Mary Amper Grocery#41
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! |
| 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.
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?