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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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 {