Category – Ruby
1 post tagged with "Ruby" (See all categories)

TTIL: Define A Custom RSpec Matcher

04/13/20191 Min Read — In Testing, Ruby, Rails, TIL

You can define your own custom RSpec matchers. This is a great way to keep your spec tight and readable. A custom, domain-specific matcher can convey more intent in a single line than several lines of…