Load timecop in the test environment only.
This commit is contained in:
parent
db691133d3
commit
aab8b230ec
2 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue