Skip to content

Commit

Permalink
DEV: Add auto group refresh to specs
Browse files Browse the repository at this point in the history
This is needed for the change in the core PR
discourse/discourse#25602
  • Loading branch information
martin-brennan committed Feb 8, 2024
1 parent ca03c8e commit 0d1de4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/jobs/export_post_event_report_csv_spec.rb
Expand Up @@ -119,7 +119,7 @@
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) }
Expand Down
2 changes: 1 addition & 1 deletion spec/models/discourse_post_event/user_spec.rb
Expand Up @@ -24,7 +24,7 @@
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
Expand Down

0 comments on commit 0d1de4b

Please sign in to comment.