From 9e55a1ca88ad21bf0d043de10333f006fdde1ca7 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Thu, 12 Jan 2023 12:46:48 +0800 Subject: [PATCH] DEV: Fix typo in chat spec (#19836) --- plugins/chat/spec/requests/chat_controller_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/chat/spec/requests/chat_controller_spec.rb b/plugins/chat/spec/requests/chat_controller_spec.rb index 8ff5912df5b..0b993612354 100644 --- a/plugins/chat/spec/requests/chat_controller_spec.rb +++ b/plugins/chat/spec/requests/chat_controller_spec.rb @@ -997,7 +997,8 @@ RSpec.describe Chat::ChatController do end it "doesn't invite users who cannot chat" do - SiteSetting.chat_allowed_groups = Group::AUTO_GROUPS[:admin] + SiteSetting.chat_allowed_groups = Group::AUTO_GROUPS[:admins] + expect { put "/chat/#{chat_channel.id}/invite.json", params: { user_ids: [user.id] } }.not_to change {