Ampers Mariko A. Grocery Store#26
Conversation
Grocery StoreWhat We're Looking For
Overall the code looks good. I think the implementation looks good and the tests are readable and accurate and thorough. In every other test you wrote, you did a great job of hardcoding the expected value and the tests were overall great. There is one test though that isn't written so well in OnlineOrder spec: describe "#total" do
it "Adds a shipping fee" do
@new_order.total.must_equal (@new_order.order_total + 10)
end
...You're testing if the method Also for checking float value equality, keep in mind that you might want to use I would discourage use of the I would encourage you to review Overall this meets all of the requirements and the project looks good. Good work! |
Grocery Store
Congratulations! You're submitting your assignment.
Comprehension Questions
raise ArgumentError?.all&.findmethods class methods? Why not instance methods?