Add failing test for commit ID in discussion header

This commit is contained in:
Winnie Hellmann 2018-12-14 14:58:18 +01:00
parent 05b16421c7
commit 0ee8b2a74b
1 changed files with 8 additions and 0 deletions

View File

@ -88,5 +88,13 @@ describe 'Merge request > User sees discussions', :js do
expect(page).to have_content "started a discussion on commit #{note.commit_id[0...7]}"
end
end
context 'a commit non-diff discussion' do
let(:note) { create(:discussion_note_on_commit, project: project) }
it 'displays correct header' do
expect(page).to have_content "commented on commit #{note.commit_id[0...7]}"
end
end
end
end