diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-18 05:12:20 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-18 05:12:20 +0400 |
commit | d30228abb83a5947ff178e7284d32941090ef7e7 (patch) | |
tree | 9453eb7cd6b66a183cf07df3d4878afa5787950e /spec | |
parent | 6a11784a2efc0db79f0b2f9c031aa9c4fc641231 (diff) | |
parent | d4257f4a68c2c5603711ce440c4e2099343d90f7 (diff) |
Merge remote branch 'untitaker/1589-remove-unicode-smileys'
Diffstat (limited to 'spec')
-rw-r--r-- | spec/helpers/markdownify_helper_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/helpers/markdownify_helper_spec.rb b/spec/helpers/markdownify_helper_spec.rb index b9feb7fd0..1e036aa8d 100644 --- a/spec/helpers/markdownify_helper_spec.rb +++ b/spec/helpers/markdownify_helper_spec.rb @@ -150,20 +150,20 @@ describe MarkdownifyHelper do end end - describe "emoticons" do + describe "specialchars" do it "replaces <3 with ♥" do message = "i <3 you" markdownify(message).should == "i ♥ you" end it "replaces various things with (their) HTML entities" do - message = ":) :-) :( :-( ... <-> -> <- (tm) (r) (c)" - markdownify(message).should == "☺ ☺ ☹ ☹ … ↔ → ← ™ ® ©" + message = "... <-> -> <- (tm) (r) (c)" + markdownify(message).should == "… ↔ → ← ™ ® ©" end it "skips doing it if you say so" do - message = ":) :-) :( :-( ... -> <-" - markdownify(message, :emoticons => false).should == ":) :-) :( :-( ... -> <-" + message = "... -> <-" + markdownify(message, :specialchars => false).should == "... -> <-" end end @@ -263,4 +263,4 @@ describe MarkdownifyHelper do end end end -end +end
\ No newline at end of file |