Be More GARY: Upping your RSpec game
Improve your test code by moving away from the DRY principle
11 min readFeb 19, 2024
This article is based on a lightning talk given at LRUG’s February 2024 meetup.
In the Ruby community, the same acronyms have a tendency to pop up frequently. There’s MINASWAN (Matz Is Nice And So We Are Nice) and YAGNI (You Ain’t Gonna Need It), of course. But perhaps the one we encounter most is DRY, or Don’t Repeat Yourself.
“Every piece of knowledge must have a single, unambiguous, authoritative representation…