mm
Arjan van der Gaag

Dad, historian, developer, team leader and all-round geek. I help companies deliver successful software using lean concepts, self-organisation and emoji.

Posts by: Arjan van der Gaag

How to Use Custom RSpec Matchers to Specify Behaviour

Introduction Test code needs to be both run by computers and read by humans. It therefore needs to be well-factored and use the domain language. At the end of this tutorial, you will have seen how you can use use RSpec‘s custom matchers to write better tests that are DRY, quick to write and easy to understand. Example: Matching JSON Documents to JsonPath Expressions Let’s say we have an API…