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/helpers/notes_helper_spec.rb')
-rw-r--r--spec/helpers/notes_helper_spec.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/helpers/notes_helper_spec.rb b/spec/helpers/notes_helper_spec.rb
index 62c0d1b1ff7..58d39caa90c 100644
--- a/spec/helpers/notes_helper_spec.rb
+++ b/spec/helpers/notes_helper_spec.rb
@@ -55,23 +55,6 @@ RSpec.describe NotesHelper, feature_category: :team_planning do
end
end
- describe "#notes_max_access_for_users" do
- it 'returns access levels' do
- expect(helper.note_max_access_for_user(owner_note)).to eq(Gitlab::Access::OWNER)
- expect(helper.note_max_access_for_user(maintainer_note)).to eq(Gitlab::Access::MAINTAINER)
- expect(helper.note_max_access_for_user(reporter_note)).to eq(Gitlab::Access::REPORTER)
- end
-
- it 'handles access in different projects' do
- second_project = create(:project)
- second_project.add_reporter(maintainer)
- other_note = create(:note, author: maintainer, project: second_project)
-
- expect(helper.note_max_access_for_user(maintainer_note)).to eq(Gitlab::Access::MAINTAINER)
- expect(helper.note_max_access_for_user(other_note)).to eq(Gitlab::Access::REPORTER)
- end
- end
-
describe '#discussion_path' do
let_it_be(:project) { create(:project, :repository) }