summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/helpers/notes_helper_spec.rb4
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