Use unfreeze_time instead of travel_back
This is consistent with `with_frozen_time`.
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user