http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/209-added-environment-options-to-config-gem
This way we can specify which gems will be loaded in each environment.
This is useful since we don't want ZenTest or ruby-debug running in
production.
Usage:
config.gem "ZenTest", :environment => :test
config.gem "ruby-debug", :environment => [:development, :test]
DHH
(DHH)
2
This way we can specify which gems will be loaded in each environment.
This is useful since we don't want ZenTest or ruby-debug running in
production.
Usage:
config.gem "ZenTest", :environment => :test
config.gem "ruby-debug", :environment => [:development, :test]
You can just do this in config/environments/test.rb:
config.gem "ZenTest"
Then it's only loaded in the test environment.