mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-15 11:48:07 +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
|
|
@ -169,7 +169,7 @@ class TodoTest < ActiveSupport::TestCase
|
|||
dates.each do |show_from_date|
|
||||
# setup test case
|
||||
t = @not_completed1
|
||||
Timecop.travel(show_from_date - 1.day) do
|
||||
travel_to show_from_date - 1.day do
|
||||
t.show_from = show_from_date
|
||||
t.save!
|
||||
assert t.deferred?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue