diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-05 14:37:45 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-05 14:37:45 +0800 |
commit | 5607fdf9fe51da75099effbaf8277c98290d6d96 (patch) | |
tree | 3df6e40e0a88b463dc5dc8d3433ba74a464084c9 /spec/helpers/notes_helper_spec.rb | |
parent | f88d4523f3e9523494a96c149c28796df8023e8d (diff) | |
download | gitlab-ce-5607fdf9fe51da75099effbaf8277c98290d6d96.tar.gz |
Let's make sure cache were cleared:
I can't reproduce this failure locally.
Here's the failure:
https://gitlab.com/gitlab-org/gitlab-ce/builds/2864250
Diffstat (limited to 'spec/helpers/notes_helper_spec.rb')
-rw-r--r-- | spec/helpers/notes_helper_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/helpers/notes_helper_spec.rb b/spec/helpers/notes_helper_spec.rb index af371248ae9..f782c153017 100644 --- a/spec/helpers/notes_helper_spec.rb +++ b/spec/helpers/notes_helper_spec.rb @@ -38,6 +38,10 @@ describe NotesHelper do end describe '#preload_max_access_for_authors' do + before do + RequestStore.clear! # make sure cache were cleared + end + it 'loads multiple users' do expected_access = { owner.id => Gitlab::Access::OWNER, |