Merge pull request #347 from ChrisBr/fix_test_dates
Implements timecop to make tests independent from DateTime
This commit is contained in:
commit
35c5116051
14 changed files with 42 additions and 38 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue