System specs are cool, but can be slow and flaky. Request specs can be good enough if you add the right seasoning to them.
Join us in anticipating exciting talks for spring and summer of 2024. Discover new lessons, shared experiences and breakthroughs from senior and principal thoughtbot developers!
Speed up your tests, a nice SQL trick, and a Jest global that you might not know about.
Highlights of what happened in thoughtbot’s #dev channel on Slack this week.
Eliminating dead code, obsolete methods, and mysterious test failures on newest Rails.
Testing anti-patterns I learned to stay away from over the years.
Confession: I’ve always struggled to understand the difference between stubbing and doubles…
Are your feature flags states leaking between your test cases? Stub them all to make your test suite more reliable. Here’s how.
Use RSpec’s Focus filter without fear of accidentally turning CI into a single-test false positive.
RSpec custom matchers can be written using plain old objects.