mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-26 15:31:52 +00:00
add: entity_cache_spec.rb
This commit is contained in:
parent
519a62a5f5
commit
20ada9327d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user