I assume you want this in an `ensure` block, as `yield` will raise an exception if the example fails.