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:
parent
6e14bf5ec7
commit
9dabe69032
2 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue