Added :environment option to config.gem

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]

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.