Move by_domain/local interaction check to filter (#39216)
This commit is contained in:
1 parent
50b6bbe379
commit
8d4f9a97fe
3 files changed
+9
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user