diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/helpers/emoji_helper_spec.rb | 20 | ||||
-rw-r--r-- | spec/lib/emoji_spec.rb | 15 |
2 files changed, 0 insertions, 35 deletions
diff --git a/spec/helpers/emoji_helper_spec.rb b/spec/helpers/emoji_helper_spec.rb deleted file mode 100644 index 6edf7672f..000000000 --- a/spec/helpers/emoji_helper_spec.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'rails_helper' - -RSpec.describe EmojiHelper, type: :helper do - describe '#emojify' do - it 'converts shortcodes to unicode' do - text = ':book: Book' - 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 - end - end -end diff --git a/spec/lib/emoji_spec.rb b/spec/lib/emoji_spec.rb deleted file mode 100644 index 04931ccfb..000000000 --- a/spec/lib/emoji_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'rails_helper' - -RSpec.describe Emoji do - describe '#unicode' do - it 'returns a unicode for a shortcode' do - expect(Emoji.instance.unicode(':joy:')).to eq '😂' - end - end - - describe '#names' do - it 'returns an array' do - expect(Emoji.instance.names).to be_an Array - end - end -end |