Replace Timecop with new ActiveSupport helpers

This commit is contained in:
Dan Rice 2014-05-16 13:24:40 -04:00
parent 7d7e47deff
commit d0cec167a8
13 changed files with 24 additions and 27 deletions

View file

@ -101,7 +101,7 @@ module RecurringTodos
end
def test_determine_start
Timecop.travel(2013,1,1) do
travel_to Time.zone.local(2013,1,1) do
rt = create_recurring_todo
assert_equal "2013-01-01 00:00:00", rt.send(:determine_start, nil).to_s(:db), "no previous date, use today"
assert_equal "2013-01-01 00:00:00", rt.send(:determine_start, nil, 1.day).to_s(:db), "no previous date, use today without offset"