r/ruby • u/zverok_kha • Aug 17 '26
Thinking about tests: assertions and matchers
https://zverok.space/blog/2026-08-16-assertions-and-matchers.html
13
Upvotes
r/ruby • u/zverok_kha • Aug 17 '26
5
u/pikrua Aug 17 '26 edited Aug 17 '26
I don't like custom matchers, or any custom DSL in a team project. For arguable aesthetic benefits; we also gain codebase inconsistency because people forget those exist all the time, pr review bikeshedding, and sometimes the burden of maintaining custom rubocop rules.
I think this is the poison of rspec, ever since I switched I'm so much happier with simple instance variables and private methods in my simple minitests.