This definitely shouldn't be in the spec_helper, and you should probably just set the environment variable when you want to configure it to that mode.  

...or, honestly, all the time, because it won't hurt anything if you have that forced in your development environment.  It will completely risk breaking things if this slips through to the CI infrastructure though.