diff --git a/spec/lib/entity_cache_spec.rb b/spec/lib/entity_cache_spec.rb index 5818de7119..2b4b12a625 100644 --- a/spec/lib/entity_cache_spec.rb +++ b/spec/lib/entity_cache_spec.rb @@ -18,4 +18,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