diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-06-07 18:33:54 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-06-07 18:33:54 +0000 |
commit | 0c45f2b992c213bf06486682368e5eeafb19d311 (patch) | |
tree | eff1772526935597f6539eec340d0c29f0049fc7 /spec/helpers | |
parent | 8bd232d43bb2c0c8d5b5b4e92609adcfbda9a008 (diff) | |
parent | 32cac597275706930b221b19fb20b29ccebc7130 (diff) | |
download | gitlab-ce-0c45f2b992c213bf06486682368e5eeafb19d311.tar.gz |
Merge branch 'add-more-actions-report-as-abuse-for-notes' into 'master'
Added more actions and report as abuse to all notes
See merge request !11352
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/notes_helper_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/helpers/notes_helper_spec.rb b/spec/helpers/notes_helper_spec.rb index 355a4845afb..cc861af8533 100644 --- a/spec/helpers/notes_helper_spec.rb +++ b/spec/helpers/notes_helper_spec.rb @@ -256,4 +256,14 @@ describe NotesHelper do expect(helper.form_resources).to eq([@project.namespace, @project, @note]) end end + + describe '#noteable_note_url' do + let(:project) { create(:empty_project) } + let(:issue) { create(:issue, project: project) } + let(:note) { create(:note_on_issue, noteable: issue, project: project) } + + it 'returns the noteable url with an anchor to the note' do + expect(noteable_note_url(note)).to match("/#{project.namespace.path}/#{project.path}/issues/#{issue.iid}##{dom_id(note)}") + end + end end |