diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-12-11 13:54:50 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-12-20 01:54:54 +0300 |
commit | 795b4a307f5e03714e022978a0a0f14a47a23eb4 (patch) | |
tree | 7680927d9bd3a08c2c6388666364026c04e9fc2d /spec/helpers/notes_helper_spec.rb | |
parent | 6aed2212bd82ca09780b2a1dc686fae20dc78dac (diff) |
Link to specific commit note from MR commit discussion link
Diffstat (limited to 'spec/helpers/notes_helper_spec.rb')
-rw-r--r-- | spec/helpers/notes_helper_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/notes_helper_spec.rb b/spec/helpers/notes_helper_spec.rb index 21461e46cf4..0715f34dafe 100644 --- a/spec/helpers/notes_helper_spec.rb +++ b/spec/helpers/notes_helper_spec.rb @@ -185,8 +185,8 @@ describe NotesHelper do context 'for a non-diff discussion' do let(:discussion) { create(:discussion_note_on_commit, project: project).to_discussion } - it 'returns the commit path' do - expect(helper.discussion_path(discussion)).to eq(project_commit_path(project, commit)) + it 'returns the commit path with the note anchor' do + expect(helper.discussion_path(discussion)).to eq(project_commit_path(project, commit, anchor: "note_#{discussion.first_note.id}")) end end end |