summaryrefslogtreecommitdiff
path: root/spec/models/board_project_recent_visit_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-31 15:10:41 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-31 15:10:41 +0000
commit2368893df711f330cd210005e616fc3b6003ff31 (patch)
treed48874fb1279741f8e97a7f397e46d14ac2df05f /spec/models/board_project_recent_visit_spec.rb
parent729eabcb410add9dbcfa46677308003dc95a64d0 (diff)
downloadgitlab-ce-2368893df711f330cd210005e616fc3b6003ff31.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/board_project_recent_visit_spec.rb')
-rw-r--r--spec/models/board_project_recent_visit_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/board_project_recent_visit_spec.rb b/spec/models/board_project_recent_visit_spec.rb
index 8e74405fd8c..145a4f5b1a7 100644
--- a/spec/models/board_project_recent_visit_spec.rb
+++ b/spec/models/board_project_recent_visit_spec.rb
@@ -28,7 +28,7 @@ RSpec.describe BoardProjectRecentVisit do
let!(:visit) { create :board_project_recent_visit, project: board.project, board: board, user: user, updated_at: 7.days.ago }
it 'updates the timestamp' do
- Timecop.freeze do
+ freeze_time do
described_class.visited!(user, board)
expect(described_class.count).to eq 1