n("This should finally fix #{issues[0].to_reference} and #{issues[0].to_reference} for real", link)       doc = Nokogiri::HTML.parse(actual)        # Make sure we didn't create invalid markup       expect(doc.errors).to be_empty        # Leading commit link       expect(doc.css('a')[0].attr('href')).to eq link       expect(doc.css('a')[0].text).to eq 'This should finally fix '        # First issue link       expect(doc.css('a')[0].attr('href'))         .to eq urls.project_issue_path(project, issues[0])       expect(doc.css('a')[0].text).to eq issues[0].to_reference        # Internal commit link       expect(doc.css('a')[0].attr('href')).to eq link       expect(doc.css('a')[0].text).to eq ' and '        # Second issue link       expect(doc.css('a')[0].attr('href'))         .to eq urls.project_issue_path(project, issues[0])       expect(doc.css('a')[0].text).to eq issues[0].to_reference        # Trailing commit link       expect(doc.css('a')[0].attr('href')).to eq link       expect(doc.css('a')[0].text).to eq ' for real'     end   