agilepathway / gauge-confluence

Publishes Gauge specifications to Confluence. This is a documentation plugin for Gauge.
Apache License 2.0
3 stars 0 forks source link

Refactor error handling in Space type #73

Closed johnboyes closed 3 years ago

johnboyes commented 3 years ago

Simplify the code using the errors are values principle.

johnboyes commented 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.

johnboyes commented 3 years ago

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)