Testing a production environment

In one place in my views I do something different if I’m in production
rather than development or test. How do I test that? I need to change
the environment for just that one test but I can’t set RAILS_ENV as
that’s a global constant and Ruby complains.


John S.