You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
560 B

  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