Forum: Ruby on Rails Testing a production environment

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
John S. (Guest)
on 2008-10-30 16:41
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.
This topic is locked and can not be replied to.