Fix bug where parsing of emoji was unnecessarily dependent on @project being set

This commit is contained in:
Riyad Preukschas 2012-09-08 00:49:17 +02:00
parent 9a4c22d395
commit ce3fb94939
2 changed files with 10 additions and 2 deletions

View file

@ -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