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:
parent
9cb67f6706
commit
76daa65b11
|
@ -63,6 +63,7 @@ describe FirstAcceptedPostSolutionValidator do
|
||||||
|
|
||||||
context 'when post is a PM' do
|
context 'when post is a PM' do
|
||||||
it 'doesn’t validate the post' do
|
it 'doesn’t validate the post' do
|
||||||
|
Group.refresh_automatic_groups!
|
||||||
post_1 = create_post(user: user_tl1, target_usernames: [user_tl1.username], archetype: Archetype.private_message)
|
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)
|
expect(described_class.check(post_1, trust_level: 'any')).to eq(false)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue