Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
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.