From 7aae498e3ee4dd4a636ed45b96c691026e8aa059 Mon Sep 17 00:00:00 2001 From: romanrizzi Date: Thu, 18 Feb 2021 16:05:44 -0300 Subject: [PATCH] DEV: Clear custom API Key scopes after testing. --- spec/components/plugin/instance_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/components/plugin/instance_spec.rb b/spec/components/plugin/instance_spec.rb index 57baa660d90..0678d472c26 100644 --- a/spec/components/plugin/instance_spec.rb +++ b/spec/components/plugin/instance_spec.rb @@ -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 })