FEATURE: Filter settings by plugin (#9692)

This commit is contained in:
Bianca Nenciu
2020-05-10 14:07:45 +03:00
committed by GitHub
parent 3b2b635e9b
commit 8149bfbaf1
10 changed files with 85 additions and 66 deletions

View File

@ -502,21 +502,6 @@ describe Plugin::Instance do
end
end
describe '#enabled_site_setting_filter' do
describe 'when filter is blank' do
it 'should return the right value' do
expect(Plugin::Instance.new.enabled_site_setting_filter).to eq(nil)
end
end
it 'should set the right value' do
instance = Plugin::Instance.new
instance.enabled_site_setting_filter('test')
expect(instance.enabled_site_setting_filter).to eq('test')
end
end
describe '#register_reviewable_types' do
it 'Overrides the existing Reviewable types adding new ones' do
current_types = Reviewable.types