CCirbo / Little_Shop

1 stars 2 forks source link

Added sad paths to handle and excetion for merchantitems and itemmerhants #85

Closed MDelarosa1993 closed 3 weeks ago

MDelarosa1993 commented 3 weeks ago

This code defines a test for the Api::V1::MerchantItemsController to ensure that it handles exceptions gracefully when a non-existent item is requested. It verifies that:

jimmacur commented 3 weeks ago

Thanks for the update! I see that the redundant Item.find call was included by mistake. Removing the extra find call should clean up the code. The new tests for error handling look good and will help ensure robustness.