mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00:00
DEV: Clear custom API Key scopes after testing.
This commit is contained in:
parent
3246c3cc92
commit
7aae498e3e
@ -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 })
|
||||
|
Loading…
x
Reference in New Issue
Block a user