DEV: Clear custom API Key scopes after testing.

This commit is contained in:
romanrizzi 2021-02-18 16:05:44 -03:00 committed by Neil Lalonde
parent 3246c3cc92
commit 7aae498e3e

View File

@ -595,6 +595,8 @@ describe Plugin::Instance do
end
describe '#add_api_key_scope' do
after { DiscoursePluginRegistry.reset! }
it 'adds a custom api key scope' do
actions = %w[admin/groups#create]
subject.add_api_key_scope(:groups, create: { actions: actions })