Description
Temporarily changes Ruby environment variables in a controlled way, especially for tests. It is useful when code needs different ENV values without leaving global state changed after a block runs.
Environment variables often contain credentials or service endpoints. Keep test output private and ensure values are restored after each test or task.