Topic: Test a production configuration option in my test environment
I've created a limit on the number of model objects a user can create using my application over a period of 24 hours. I don't want that limit to apply in the development or test environments - just in the production environment. So I put a constant that represents the limit inside production.rb under the config/environment folder.
Now in one of my tests (not all of them), I'd like to test that the limit is enforced.
What's the best way to do that?