mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-08-20 15:25:14 +00:00
20 lines
445 B
Ruby
20 lines
445 B
Ruby
require 'rails_helper'
|
|
|
|
describe AccountFilter do
|
|
describe 'with empty params' do
|
|
it 'excludes instance actor by default' do
|
|
filter = described_class.new({})
|
|
|
|
expect(filter.results).to eq Account.without_instance_actor
|
|
end
|
|
end
|
|
|
|
describe 'with invalid params' do
|
|
it 'raises with key error' do
|
|
filter = described_class.new(wrong: true)
|
|
|
|
expect { filter.results }.to raise_error(/wrong/)
|
|
end
|
|
end
|
|
end
|