RubyConf 2022: RSpec: The Bad Parts by Caleb Hearth
Description:
Explore the pitfalls of RSpec in this 22-minute conference talk from RubyConf 2022. Dive into a realistic example spec to understand why certain RSpec features like let, subject, shared_examples, behaves like, and before can hinder test readability, navigation, and simplicity. Learn when the DRY principle might not be beneficial and discover alternative approaches to avoid repetition without relying on RSpec's built-in DSL methods. Conclude by examining the remaining valuable aspects of RSpec, focusing on its strengths and most effective components.
RSpec: The Bad Parts - Avoiding Common Pitfalls for Better Testing