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 {