Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
099cf355
Commit
099cf355
authored
Oct 09, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Failing test for apostrophe at the end of user mention on project with issue iid 39.
parent
2fb99c79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
spec/helpers/gitlab_markdown_helper_spec.rb
spec/helpers/gitlab_markdown_helper_spec.rb
+10
-0
No files found.
spec/helpers/gitlab_markdown_helper_spec.rb
View file @
099cf355
...
@@ -530,6 +530,16 @@ describe GitlabMarkdownHelper do
...
@@ -530,6 +530,16 @@ describe GitlabMarkdownHelper do
markdown
(
actual
).
should
match
(
%r{<li>light by <a.+>@
#{
member
.
user
.
username
}
</a></li>}
)
markdown
(
actual
).
should
match
(
%r{<li>light by <a.+>@
#{
member
.
user
.
username
}
</a></li>}
)
end
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
it
"should handle references in <em>"
do
actual
=
"Apply _!
#{
merge_request
.
iid
}
_ ASAP"
actual
=
"Apply _!
#{
merge_request
.
iid
}
_ ASAP"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment