Writing rspec-Style Tests Respectfully

No one in the past, present, or future of Agile software development will ever forget JUnit and its spawn, but rspec and its imitators from other lambda languages are definitely a step forward. Why, then, do your rspec-style unit tests look just like JUnit tests, but more annoying? It’s because you’re doing it wrong. To get all the juice out of rspec-style testing libraries, you have to use them respectfully, as though they were rspec-style testing libraries, not just JUnit with different syntax. A respectfully-written rspec-style test suite will be considerably shorter, DRYer, and easier to modify than a JUnit-style test. It’s a mental shift, but not a massive one. Come find out why and how.