Load timecop in the test environment only.

This commit is contained in:
Tom Hughes 2010-04-07 10:59:19 +00:00
parent db691133d3
commit aab8b230ec
2 changed files with 3 additions and 3 deletions

View file

@ -54,9 +54,6 @@ Rails::Initializer.run do |config|
config.gem 'httpclient'
config.gem 'SystemTimer', :version => '>= 1.1.3', :lib => 'system_timer'
config.gem 'sanitize'
# if Rails.env == "development"
config.gem 'timecop'
# end
# Only load the plugins named here, in the order given. By default, all plugins
# in vendor/plugins are loaded in alphabetical order.

View file

@ -20,3 +20,6 @@ config.action_controller.allow_forgery_protection = false
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
# Load timecop to help with testing time dependent code
config.gem 'timecop'