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

@@ -10,10 +10,10 @@ class PostVersionsControllerTest < ActionDispatch::IntegrationTest
setup do
@user.as_current do
@post = create(:post)
travel_to(2.hours.from_now) do
travel(2.hours) do
@post.update(:tag_string => "1 2", :source => "xxx")
end
travel_to(4.hours.from_now) do
travel(4.hours) do
@post.update(:tag_string => "2 3", :rating => "e")
end
@versions = @post.versions