moar mappings for process_emoticons

This commit is contained in:
MrZYX 2011-05-04 15:28:42 +02:00
parent abde3244b5
commit 77bae90d0e
2 changed files with 6 additions and 3 deletions

View file

@ -284,7 +284,10 @@ module ApplicationHelper
":-)" => "☺", ":-)" => "☺",
"->" => "→", "->" => "→",
"<-" => "←", "<-" => "←",
"..." => "…" "..." => "…",
"(tm)" => "™",
"(r)" => "®",
"(c)" => "©"
} }
map.each do |search, replace| map.each do |search, replace|

View file

@ -168,8 +168,8 @@ describe ApplicationHelper do
end end
it "replaces various things with (their) HTML entities" do it "replaces various things with (their) HTML entities" do
message = ":) :-) :( :-( ... -> <-" message = ":) :-) :( :-( ... -> <- (tm) (r) (c)"
markdownify(message).should == "&#9786; &#9786; &#9785; &#9785; &hellip; &rarr; &larr;" markdownify(message).should == "&#9786; &#9786; &#9785; &#9785; &hellip; &rarr; &larr; &trade; &reg; &copy;"
end end
it "skips doing it if you say so" do it "skips doing it if you say so" do