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.
Running tests and managing deployments can be a tediously manual process or overwhelming to automate with all the available platforms and tools to choose from. We at thoughtbot want to share how our process has made CI/CD simple and enjoyable.
A subtle bug happens when validating the presence of boolean fields in Rails. Here’s how to find it before it hits production.
Running shell commands in Ruby, truly random numbers, fixing flaky tests, and how to get the most out of TypeScript.