mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-27 07:13:44 +01:00
a390abdefb
* Use the same emoji data on the frontend and backend * Move emoji.json to repository, add tests This way you don't need to install node dependencies if you only want to run Ruby code
15 lines
313 B
Ruby
15 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
|