mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 11:11:59 +08:00
DEV: Clear custom API Key scopes after testing.
This commit is contained in:
@ -595,6 +595,8 @@ describe Plugin::Instance do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe '#add_api_key_scope' do
|
describe '#add_api_key_scope' do
|
||||||
|
after { DiscoursePluginRegistry.reset! }
|
||||||
|
|
||||||
it 'adds a custom api key scope' do
|
it 'adds a custom api key scope' do
|
||||||
actions = %w[admin/groups#create]
|
actions = %w[admin/groups#create]
|
||||||
subject.add_api_key_scope(:groups, create: { actions: actions })
|
subject.add_api_key_scope(:groups, create: { actions: actions })
|
||||||
|
Reference in New Issue
Block a user