Gretel stubs out controller.controller method to return nil. I've made a workaround for that. All tests pass.
It might have been a better idea to do:
context.try(:controller) || context
... instead of the code I've written, but it breaks a lot of tests, which it should not.