diff options
author | Stan Hu <stanhu@gmail.com> | 2015-09-18 11:05:27 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-09-20 09:32:35 -0700 |
commit | 3b39b648d2f0545f9d3dbd1680f8e9e977893792 (patch) | |
tree | 226f43e115522624db74f4dcb064fdd617869306 /spec | |
parent | 5a8d73243a7b68f2724a6d5f9d482dda24e9dfe4 (diff) | |
download | gitlab-ce-3b39b648d2f0545f9d3dbd1680f8e9e977893792.tar.gz |
Fix Markdown links not showing up in dashboard activity feed
Closes #2586
Diffstat (limited to 'spec')
-rw-r--r-- | spec/helpers/gitlab_markdown_helper_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb index 5639b3db913..b8101ae77ec 100644 --- a/spec/helpers/gitlab_markdown_helper_spec.rb +++ b/spec/helpers/gitlab_markdown_helper_spec.rb @@ -38,6 +38,17 @@ describe GitlabMarkdownHelper do expect(markdown(actual)).to match(expected) end end + + describe "override default project" do + let(:actual) { issue.to_reference } + let(:second_project) { create(:project) } + let(:second_issue) { create(:issue, project: second_project) } + + it 'should link to the issue' do + expected = namespace_project_issue_path(second_project.namespace, second_project, second_issue) + expect(markdown(actual, project: second_project)).to match(expected) + end + end end describe '#link_to_gfm' do |