Fix bug where parsing of emoji was unnecessarily dependent on @project being set
This commit is contained in:
parent
9a4c22d395
commit
ce3fb94939
2 changed files with 10 additions and 2 deletions
|
@ -247,6 +247,11 @@ describe GitlabMarkdownHelper do
|
|||
it "ignores invalid emoji" do
|
||||
gfm(":invalid-emoji:").should_not match(/<img/)
|
||||
end
|
||||
|
||||
it "should work independet of reference links (i.e. without @project being set)" do
|
||||
@project = nil
|
||||
gfm(":+1:").should match(/<img/)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue