Adding timecop as a gem dependency when in development env. This allows for time based tests to be accurate/consistent. It will stop the random error on the api_controller_test#test_changes_simple, when you are on a slow machine/have bad timing.

This commit is contained in:
Shaun McDonald 2010-04-03 21:02:20 +00:00
parent 6e14bf5ec7
commit 9dabe69032
2 changed files with 6 additions and 2 deletions

View file

@ -54,6 +54,9 @@ 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.