Rails supports writing Capybara tests out of the box since the 5.1 release in the form of system tests. This means you no longer need to configure database cleaning strategies or have webdriver configuration files with hard-to-understand configuration settings.
This article explores how to migrate Feature specs in an existing Rails app to the default System specs.
The next release of Rails will ship with a CI template that will “work out of the box”… unless you’re using RSpec.
Tests hanging with no feedback on how to solve the problem? Try this!
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.
factory_girl is becoming factory_bot.
Improve test readability by leveraging RSpec’s matcher composition to make multiple assertions with a single matcher.
Learn how to test code using data in environment variables with Climate Control.
Turn off concurrency in tests to avoid race conditions in Capybara.