#RubyOnRails - 07 April 2019
« Back 1 day Forward 1 day »
[16:08:44] xco: Hi, I have something like this in my controller https://gist.github.com/xcobar/641a85d7590ea5715951b4b8b3fcfa5b
[17:11:03] nakuku: Hello. I put my business logic into Service classes. So i have something like Users::Services::Register. The steps inside such service include validation, then persistance and then it return itself with #result that returns created object.
[17:11:40] nakuku: Is it okay for my specs to describe it in steps such as "validations", "persistance", "#result"?
[17:12:29] nakuku: I also like to make describe "behaviour" and test calls to different services there like it "calls NotifyService.call"