Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared_examples/controllers/issuable_notes_filter_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/controllers/issuable_notes_filter_shared_examples.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/support/shared_examples/controllers/issuable_notes_filter_shared_examples.rb b/spec/support/shared_examples/controllers/issuable_notes_filter_shared_examples.rb
index a4eb6a839c0..bd9c2582d2f 100644
--- a/spec/support/shared_examples/controllers/issuable_notes_filter_shared_examples.rb
+++ b/spec/support/shared_examples/controllers/issuable_notes_filter_shared_examples.rb
@@ -18,23 +18,6 @@ RSpec.shared_examples 'issuable notes filter' do
expect(UserPreference.count).to eq(1)
end
- it 'expires notes e-tag cache for issuable if filter changed' do
- notes_filter = UserPreference::NOTES_FILTERS[:only_comments]
-
- expect_any_instance_of(issuable.class).to receive(:expire_note_etag_cache)
-
- get :discussions, params: params.merge(notes_filter: notes_filter)
- end
-
- it 'does not expires notes e-tag cache for issuable if filter did not change' do
- notes_filter = UserPreference::NOTES_FILTERS[:only_comments]
- user.set_notes_filter(notes_filter, issuable)
-
- expect_any_instance_of(issuable.class).not_to receive(:expire_note_etag_cache)
-
- get :discussions, params: params.merge(notes_filter: notes_filter)
- end
-
it 'does not set notes filter when database is in read-only mode' do
allow(Gitlab::Database).to receive(:read_only?).and_return(true)
notes_filter = UserPreference::NOTES_FILTERS[:only_comments]