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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs