I am currently trying to refactor my app's controller specs, and I'm a bit unsure how to begin. One of my controllers is for a model which implements a moderately complex state machine. The controller is as thin as can be, while still handling the fact that different controller actions need to react differently depending on the model's state.Between many (10+) different controller actions, many (10+) different states, and the fact that each test checks the flash, instance variables, and redirect paths, my controller specs are now over 2000 lines long. Would it be more appropriate to just create a new spec file for each action at this point?
It's just become so big that it's difficult to sort through it all. Has anyone else ever run up against this problem?--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rspec/-/FUSybPnR_lsJ.
For more options, visit https://groups.google.com/groups/opt_out.