DEV: Fix specs for personal_message_enabled_groups setting (#208)

See https://github.com/discourse/discourse/pull/18437,
we are removing any references to enable_personal_messages
in core and using only personal_message_enabled_groups,
which requires auto groups to be assigned in certain specs
for them to keep working.
This commit is contained in:
Martin Brennan 2022-10-04 14:19:45 +10:00 committed by GitHub
parent 9cb67f6706
commit 76daa65b11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ describe FirstAcceptedPostSolutionValidator do
context 'when post is a PM' do
it 'doesnt validate the post' do
Group.refresh_automatic_groups!
post_1 = create_post(user: user_tl1, target_usernames: [user_tl1.username], archetype: Archetype.private_message)
expect(described_class.check(post_1, trust_level: 'any')).to eq(false)
end