mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FEATURE: Filter settings by plugin (#9692)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user