mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-22 02:00:12 +01:00
Replace Timecop with new ActiveSupport helpers
This commit is contained in:
parent
7d7e47deff
commit
d0cec167a8
13 changed files with 24 additions and 27 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue