Use unfreeze_time instead of travel_back

This is consistent with `with_frozen_time`.
This commit is contained in:
Javi Martín
2021-09-19 23:18:43 +02:00
parent ea3abd6317
commit b59e2b31d3
2 changed files with 2 additions and 2 deletions

View File

@@ -267,7 +267,7 @@ describe Poll::Stats do
expect(stats.version).to eq "v#{time.to_i}"
travel_back
unfreeze_time
travel_to 2.seconds.from_now do
expect(stats.version).to eq "v#{time.to_i}"

View File

@@ -176,7 +176,7 @@ describe "Voter" do
expect(page).not_to have_link(answer_yes.title)
end
travel_back
unfreeze_time
click_link "Sign out"