Skip to content

Commit

Permalink
Failing test for apostrophe at the end of user mention on project wit…
Browse files Browse the repository at this point in the history
…h issue iid 39.
  • Loading branch information
maxlazio committed Oct 9, 2014
1 parent 2fb99c7 commit 099cf35
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/helpers/gitlab_markdown_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,16 @@ def url_helper(image_name)
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"

Expand Down

0 comments on commit 099cf35

Please sign in to comment.