Be More GARY: Upping your RSpec game

Improve your test code by moving away from the DRY principle

Scott Matthewman

--

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…

--

--

Scott Matthewman

Scott is a software developer during the day and a theatre critic & director of an evening. Which is the worst superhero identity ever.