Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2014-10-09 16:02:10 +0400
committerMarin Jankovski <maxlazio@gmail.com>2014-10-09 16:02:10 +0400
commit099cf3558f9e41022ac38d2f8226bdbe3c9aa470 (patch)
tree3e3b6ddb36e6c5e227d9a84e82bfc7cf43302a60 /spec
parent2fb99c79ffd89c5807f504247856f4bf48f6c34a (diff)
Failing test for apostrophe at the end of user mention on project with issue iid 39.
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/gitlab_markdown_helper_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb
index 15033f07432..f7b87f2966e 100644
--- a/spec/helpers/gitlab_markdown_helper_spec.rb
+++ b/spec/helpers/gitlab_markdown_helper_spec.rb
@@ -530,6 +530,16 @@ describe GitlabMarkdownHelper do
markdown(actual).should match(%r{<li>light by <a.+>@#{member.user.username}</a></li>})
end
+ it "should not link the apostrophe to issue 39" do
+ project.team << [user, :master]
+ project.issues.stub(:where).with(iid: '39').and_return([issue])
+
+ actual = "Yes, it is @#{member.user.username}'s task."
+ expected = /Yes, it is <a.+>@#{member.user.username}<\/a>'s task/
+ markdown(actual).should match(expected)
+ end
+
+
it "should handle references in <em>" do
actual = "Apply _!#{merge_request.iid}_ ASAP"