mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-14 10:54:27 +00:00
16 lines
313 B
Ruby
16 lines
313 B
Ruby
|
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
|