INTEGRATION TESTS ARE BOGUS
summary
Argues that many slow brittle integration tests become unnecessary by using Bogus to make unit doubles realistic: verified doubles (coming in RSpec 3) fail when a stubbed method was renamed or has the wrong arity, spies/assertions check actual calls, and contract tests collect all stubs/mocks and verify the real class implements those interactions. Demonstrates replacing fragile end-to-end checks with verified doubles and Bogus contract checks, notes Minitest and RSpec support and forces clearer dependency injection so hidden mismatches surface immediately.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:54What are integration tests
- 3:43Unit tests
- 4:41Query separation
- 6:34Basic correctness
- 7:32Test doubles
- 8:25The problem with doubles
- 9:03Why we have integration tests
- 9:52Example
- 13:17Verified Doubles
- 21:40Experiments
- 26:36Vehicle tests
- 28:13Recap
- 28:48Prelaunch
- 29:13mintest min spec
- 29:27Integration Test RS
- 29:48Boundaries








