Closed justin808 closed 6 years ago
I think this makes more sense as something like https://github.com/steveklabnik/request_store#no-rails--racktest than as code.
@steveklabnik Are you confident that your approach would work for controller specs? And does my approach not get used for request and feature specs?
In my conversion to using request_store, controller specs were depending on a before hook in the controllers to do the clear. I'd like to propose that I submit a PR that contains the following:
This was modeled after the way Devise::TestHelpers is done.
If this sounds good, I'll create a PR. This solution seems to be working for me.