[master/core] Fixes stub_authorization! for RSpec 3.