Charity Workshop: Ruby and Rails Testing Techniques
summary
Claims that Flex mock makes testing and design easier, recommends using mocking routinely for nontrivial unit tests, and shows a concrete example: dealer.draw must call deck.draw exactly should_receive .once so the expectation fails when draw isn’t invoked. Compares mocha and Flex mock, demos rpec style specs with unimplemented examples, and runs arov coverage reporting (example session shows 100% coverage on the toy code).
AI-written summary · about
chapters (7)
- 0:00Start
- 25:52Benefit of Tdd
- 30:20Making a Rake File
- 33:53R-Spec
- 35:33Behavior Driven Design
- 38:43Spec Talk
- 39:32Described Method








