about summary refs log tree commit diff
path: root/spec/helpers
diff options
context:
space:
mode:
authorOndřej Hruška <ondra@ondrovo.com>2017-07-27 01:02:15 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-07-27 01:02:15 +0200
commitf49339ca9ca2fbc7feca30be217ed2311ebd106a (patch)
tree5ece177e11d380e592d6fe9aa8505511204b32e2 /spec/helpers
parent994d948c3947b75140c2a2a7de5b81713c7b8ea3 (diff)
Fix multipoint shortcode bug (#4387)
* Fix multipoint shortcode bug

* Added testcase for composite emoji shortcode
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/emoji_helper_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/helpers/emoji_helper_spec.rb b/spec/helpers/emoji_helper_spec.rb
index 1eedfb719..6edf7672f 100644
--- a/spec/helpers/emoji_helper_spec.rb
+++ b/spec/helpers/emoji_helper_spec.rb
@@ -7,6 +7,11 @@ RSpec.describe EmojiHelper, type: :helper do
       expect(emojify(text)).to eq '📖 Book'
     end
 
+    it 'converts composite emoji shortcodes to unicode' do
+      text = ':couple_ww:'
+      expect(emojify(text)).to eq '👩❤👩'
+    end
+
     it 'does not convert shortcodes that are part of a string into unicode' do
       text = ':see_no_evil::hear_no_evil::speak_no_evil:'
       expect(emojify(text)).to eq text