diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-05 12:09:00 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-05 12:09:00 +0000 |
commit | eb3f624622331c74198ba299af90bd1e431a330f (patch) | |
tree | 4ce2444b78c690afa00e96259ab86b28ad211c0b /spec/requests | |
parent | 2a134be97dafb4743eee8fc908463136ddf23b1f (diff) | |
download | gitlab-ce-eb3f624622331c74198ba299af90bd1e431a330f.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/projects/merge_requests_discussions_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/requests/projects/merge_requests_discussions_spec.rb b/spec/requests/projects/merge_requests_discussions_spec.rb index 9933bf1545d..caf62c251b6 100644 --- a/spec/requests/projects/merge_requests_discussions_spec.rb +++ b/spec/requests/projects/merge_requests_discussions_spec.rb @@ -188,10 +188,10 @@ RSpec.describe 'merge requests discussions', feature_category: :source_code_mana context 'when the diff note position changes' do before do # This replicates a position change wherein timestamps aren't updated - # which is why `Gitlab::Timeless.timeless` is utilized. This is the - # same approach being used in Discussions::UpdateDiffPositionService - # which is responsible for updating the positions of diff discussions - # when MR updates. + # which is why `save(touch: false)` is utilized. This is the same + # approach being used in Discussions::UpdateDiffPositionService which + # is responsible for updating the positions of diff discussions when + # MR updates. first_note.position = Gitlab::Diff::Position.new( old_path: first_note.position.old_path, new_path: first_note.position.new_path, @@ -200,7 +200,7 @@ RSpec.describe 'merge requests discussions', feature_category: :source_code_mana diff_refs: first_note.position.diff_refs ) - Gitlab::Timeless.timeless(first_note, &:save) + first_note.save!(touch: false) end it_behaves_like 'cache miss' do |