Fixes stub_authorization! for RSpec 3.
Fixes #5182