Move by_domain/local interaction check to filter (#39216)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2026-06-01 14:52:19 +00:00
1 parent 50b6bbe379
commit 8d4f9a97fe
3 files changed
+9 -6

No files matched your search

+2 -2
View File
@@ -12,9 +12,9 @@ RSpec.describe CustomEmojiFilter do
context 'when params have values' do
context 'when local' do
let(:params) { { local: true } }
let(:params) { { local: true, by_domain: 'a' } }
it 'returns ActiveRecord::Relation' do
it 'ignores domain and returns ActiveRecord::Relation' do
expect(subject).to be_a(ActiveRecord::Relation)
expect(subject).to contain_exactly(custom_emoji_domain_nil)
end