add: entity_cache_spec.rb

This commit is contained in:
HolgerHuo 2024-05-26 08:09:50 +08:00 committed by Holger Huo
parent 519a62a5f5
commit 20ada9327d
No known key found for this signature in database
GPG Key ID: BBD8E4260396640D

View File

@ -16,4 +16,12 @@ RSpec.describe EntityCache do
end
end
end
describe '#to_emoji' do
context 'when input shortcode has cases' do
it 'returns emoji with cases preserved' do
expect(described_class.instance.to_emoji(:emoji, 'FooBar', 'example.org')).to eq 'emoji:FooBar:example.org'
end
end
end
end