tests: drop timecop gem.

This commit is contained in:
evazion
2019-08-18 03:50:43 -05:00
parent b15fd6d017
commit 27a118dfc8
24 changed files with 38 additions and 42 deletions

View File

@@ -167,10 +167,10 @@ class WikiPagesControllerTest < ActionDispatch::IntegrationTest
as_user do
@wiki_page = create(:wiki_page, :body => "1")
end
travel_to(1.day.from_now) do
travel(1.day) do
@wiki_page.update(:body => "1 2")
end
travel_to(2.days.from_now) do
travel(2.days) do
@wiki_page.update(:body => "1 2 3")
end
end