2 Comments

> And the last line is exactly the command you need to restart only the failing test for quick debugging (which is harder with truth tables/shared examples).

I think rspec has some fancy tech to provide a command that runs just the failure even with the other implementations. It doesn’t use line numbers when they are ambiguous.

Expand full comment
author

Yeah, it is usually in format like `spec_file.rb[1:2:3:1:8]`, but not in this case—and that’s why I love this approach (a simpler/more widespread alternative of shared examples would lead exactly to that).

Expand full comment