RSpec Refactoring Patterns: Extract Matcher
Extract Matcher is good for when you’ve got one or more expectations verifying state. By extracting well-named matchers, you can make the spec more readable. More at https://www.wetestrails.com/blog/extract-matcher (with code samples)
Comments
Why refactoring specs any way.
Post a comment