Source code for the custom Mastodon (Glitchsoc) instance on berserker.town.
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
445 B

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