Skip to content

Commit

Permalink
DEV: More refresh_auto_groups to fix specs (#130)
Browse files Browse the repository at this point in the history
Needed to fix specs in discourse/discourse#24357
  • Loading branch information
oblakeerickson authored Nov 17, 2023
1 parent b1f6100 commit af36cbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/group_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "rails_helper"

describe Group do
fab!(:user) { Fabricate(:user) }
fab!(:user) { Fabricate(:user, refresh_auto_groups: true) }
fab!(:category) { Fabricate(:category) }
fab!(:group) { Fabricate(:group) }
fab!(:topic) { Fabricate(:topic, category: category) }
Expand Down Expand Up @@ -51,7 +51,7 @@
end

describe "Removing expert from group" do
fab!(:other_expert) { Fabricate(:user) }
fab!(:other_expert) { Fabricate(:user, refresh_auto_groups: true) }

before do
group.add(user)
Expand Down

0 comments on commit af36cbd

Please sign in to comment.