Merge pull request #347 from ChrisBr/fix_test_dates

Implements timecop to make tests independent from DateTime
This commit is contained in:
Christian Bruckmayer 2014-07-23 15:20:44 +02:00
commit 35c5116051
14 changed files with 42 additions and 38 deletions

View file

@ -43,6 +43,9 @@ Osem::Application.configure do
config.after_initialize do
ActiveRecord::Base.logger = nil
# Set Time.now to May 1, 2014 00:01:00 AM (at this instant), but allow it to move forward
t = Time.local(2014, 05, 01, 00, 01, 00)
Timecop.travel(t)
end
end