DEV: Add auto group refresh to specs (#542)

This is needed for the change in the core PR
https://github.com/discourse/discourse/pull/25602
This commit is contained in:
Martin Brennan 2024-02-08 12:32:04 +10:00 committed by GitHub
parent ca03c8e4ee
commit 35d93e65f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ describe Jobs::ExportCsvFile do
end
context "when the requesting user is not admin but can act on this event" do
let(:user) { Fabricate(:user, admin: false) }
let(:user) { Fabricate(:user, admin: false, refresh_auto_groups: true) }
let(:user_1) { Fabricate(:user) }
let(:user_2) { Fabricate(:user) }
let(:topic) { Fabricate(:topic, user: user) }

View File

@ -24,7 +24,7 @@ describe User do
end
context "when user is not staff" do
let(:user_1) { Fabricate(:user) }
let(:user_1) { Fabricate(:user, refresh_auto_groups: true) }
context "when user is in list of allowed groups" do
let(:group_1) do