Just so you know, this will not scope SimulatedError to the describe block but will define it globally.

I would say something like

``` ruby
def simulated_error
  Class.new(StandardError)
end
```