DEV: Fix typo in chat spec (#19836)

This commit is contained in:
Alan Guo Xiang Tan
2023-01-12 12:46:48 +08:00
committed by GitHub
parent 9a6eefaafc
commit 9e55a1ca88

View File

@@ -997,7 +997,8 @@ RSpec.describe Chat::ChatController do
end end
it "doesn't invite users who cannot chat" do 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 { expect {
put "/chat/#{chat_channel.id}/invite.json", params: { user_ids: [user.id] } put "/chat/#{chat_channel.id}/invite.json", params: { user_ids: [user.id] }
}.not_to change { }.not_to change {