-
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.
-
Turn off concurrency in tests to avoid race conditions in Capybara.
-
Use RSpec and JSON Schema to create a test-driven process in which changes to the structure of your JSON API drive the implementation of new features.
-
Learn one simple way to speed up your tests with the factory_bot gem!
-
Use a Page Object to improve acceptance readability.
-
Use Webmock to mock HTTP requests to external services in a simple and predictable way.
Sign up to receive a weekly recap from thoughtbot