1
0

entity_cache_spec.rb 560 B

12345678910111213141516171819
  1. require 'rails_helper'
  2. RSpec.describe EntityCache do
  3. let(:local_account) { Fabricate(:account, domain: nil, username: 'alice') }
  4. let(:remote_account) { Fabricate(:account, domain: 'remote.test', username: 'bob', url: 'https://remote.test/') }
  5. describe '#emoji' do
  6. subject { EntityCache.instance.emoji(shortcodes, domain) }
  7. context 'called with an empty list of shortcodes' do
  8. let(:shortcodes) { [] }
  9. let(:domain) { 'example.org' }
  10. it 'returns an empty array' do
  11. is_expected.to eq []
  12. end
  13. end
  14. end
  15. end