SpreeWholesale::WholesalerController feels really brittle and needs to be refactored.
Currently, only new/create and edit/update is testing only for admin::wholesalers_controller. Adding a new wholesaler works well, but when I try to update a wholesaler, it fails pretty consistently. I believe the issues is with the Address models failing to update & associate with the Wholesaler object in #update...
We definitely need to add some more tests around the wholesalers controllers and should refactor it as well.
SpreeWholesale::WholesalerController feels really brittle and needs to be refactored.
Currently, only new/create and edit/update is testing only for admin::wholesalers_controller. Adding a new wholesaler works well, but when I try to update a wholesaler, it fails pretty consistently. I believe the issues is with the Address models failing to update & associate with the Wholesaler object in #update...
We definitely need to add some more tests around the wholesalers controllers and should refactor it as well.