Closed johnboyes closed 3 years ago
This commit is also an example of how the outside-in, Spec by Example testing approach makes it safe to do this type of refactoring, without the burden of having to change the tests significantly (or at all, in this case) as well.
NB there is much more refactoring that could be done, but I want to do it gradually across multiple PRs (so that each PR is not too large)
Simplify the code using the errors are values principle.