mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-03 15:52:34 +01:00
add: entity_cache_spec.rb
This commit is contained in:
parent
07e6df0d40
commit
6eeb9215b6
1 changed files with 8 additions and 0 deletions
|
@ -18,4 +18,12 @@ RSpec.describe EntityCache do
|
||||||
end
|
end
|
||||||
end
|
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
|
end
|
||||||
|
|
Loading…
Reference in a new issue