moar mappings for process_emoticons
This commit is contained in:
parent
abde3244b5
commit
77bae90d0e
2 changed files with 6 additions and 3 deletions
|
|
@ -284,7 +284,10 @@ module ApplicationHelper
|
|||
":-)" => "☺",
|
||||
"->" => "→",
|
||||
"<-" => "←",
|
||||
"..." => "…"
|
||||
"..." => "…",
|
||||
"(tm)" => "™",
|
||||
"(r)" => "®",
|
||||
"(c)" => "©"
|
||||
}
|
||||
|
||||
map.each do |search, replace|
|
||||
|
|
|
|||
|
|
@ -168,8 +168,8 @@ describe ApplicationHelper do
|
|||
end
|
||||
|
||||
it "replaces various things with (their) HTML entities" do
|
||||
message = ":) :-) :( :-( ... -> <-"
|
||||
markdownify(message).should == "☺ ☺ ☹ ☹ … → ←"
|
||||
message = ":) :-) :( :-( ... -> <- (tm) (r) (c)"
|
||||
markdownify(message).should == "☺ ☺ ☹ ☹ … → ← ™ ® ©"
|
||||
end
|
||||
|
||||
it "skips doing it if you say so" do
|
||||
|
|
|
|||
Loading…
Reference in a new issue