diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-12 10:11:16 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-12 10:11:16 +0300 |
commit | 5f5503fb94abc3703c0ff08ad5b7f6be0bf4b7ac (patch) | |
tree | 72acc050dda8df2202da81fac0aa4a9022e647a9 /spec/helpers | |
parent | e2c01f397f2f00138d2b4e618306ee2aa141c97c (diff) |
Make the comment more clear, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13810778
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/notes_helper_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/helpers/notes_helper_spec.rb b/spec/helpers/notes_helper_spec.rb index fb0ace73707..853b8b2f7f7 100644 --- a/spec/helpers/notes_helper_spec.rb +++ b/spec/helpers/notes_helper_spec.rb @@ -39,7 +39,9 @@ describe NotesHelper do describe '#preload_max_access_for_authors' do before do - RequestStore.clear! # make sure cache were cleared + # #preload_max_access_for_authors would read cache from RequestStore, + # so we should make sure it's clean. + RequestStore.clear! end it 'loads multiple users' do |