From 20ada9327d8ebc69e3e9c2361bffd82f9d1c0970 Mon Sep 17 00:00:00 2001 From: HolgerHuo <50446405+HolgerHuo@users.noreply.github.com> Date: Sun, 26 May 2024 08:09:50 +0800 Subject: [PATCH] add: entity_cache_spec.rb --- spec/lib/entity_cache_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/lib/entity_cache_spec.rb b/spec/lib/entity_cache_spec.rb index 43494bd92aa..55c11ea8a4d 100644 --- a/spec/lib/entity_cache_spec.rb +++ b/spec/lib/entity_cache_spec.rb @@ -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