Wondering whether you can't have the rack_app above just be a double('rack_app') and just have a line here:

```ruby
rack_app.should_receive(:call).with(env)
```
as your expectation in the example. Could dump the rack_class then I think.