Forum: Ruby on Rails Testing a production environment

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
44a43e7fef8e933e802a7802b4bd3525?d=identicon&s=25 John Small (johnsmall)
on 2008-10-30 15: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.

Thanks

John Small
This topic is locked and can not be replied to.