This modifies a global environment variable which might have an effect on other subsequent tests. Looks like it might be safer to use `stub_const()` described here: http://stackoverflow.com/a/19951660/183535