mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 20:01:14 +08:00
FIX: wasn't able to remove a user's primary group
This commit is contained in:
@ -228,6 +228,13 @@ describe Admin::UsersController do
|
||||
@another_user.reload
|
||||
expect(@another_user.primary_group_id).to be_nil
|
||||
end
|
||||
|
||||
it "remove user's primary group" do
|
||||
group.add(@another_user)
|
||||
xhr :put, :primary_group, user_id: @another_user.id, primary_group_id: ""
|
||||
@another_user.reload
|
||||
expect(@another_user.primary_group_id).to be(nil)
|
||||
end
|
||||
end
|
||||
|
||||
context '.trust_level' do
|
||||
|
Reference in New Issue
Block a user