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