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

@ -183,7 +183,7 @@ class RecurringTodosControllerTest < ActionController::TestCase
# this test is a duplicate of the unit test. Only this test covers the
# codepath in the controllers
Timecop.travel(Time.local(2012,1,1)) do
travel_to Time.local(2012,1,1) do
login_as(:admin_user)
@ -292,7 +292,7 @@ class RecurringTodosControllerTest < ActionController::TestCase
end
def test_start_on_monthly_rec_todo
Timecop.travel(Time.local(2012,1,1)) do
travel_to Time.local(2012,1,1) do
login_as(:admin_user)