2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

FIX: everyone is not a visible group

This commit is contained in:
Sam 2016-10-24 13:03:22 +11:00
parent f083994f5a
commit 9a94d1b212
4 changed files with 8 additions and 1 deletions

View file

@ -154,6 +154,11 @@ describe Group do
end
it "makes sure the everyone group is not visible" do
g = Group.refresh_automatic_group!(:everyone)
expect(g.visible).to eq(false)
end
it "Correctly handles removal of primary group" do
group = Fabricate(:group)
user = Fabricate(:user)