mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
UX: Better group creation workflow.
* Owners and users can now be added to a group during creation. https://meta.discourse.org/t/you-cannot-allow-membership-requests-without-any-owners/64760/3
This commit is contained in:
@ -39,21 +39,6 @@ describe Admin::GroupsController do
|
||||
end
|
||||
end
|
||||
|
||||
context "#create" do
|
||||
|
||||
it "strip spaces on the group name" do
|
||||
xhr :post, :create, { group: { name: " bob " } }
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
groups = Group.where(name: "bob").to_a
|
||||
|
||||
expect(groups.count).to eq(1)
|
||||
expect(groups[0].name).to eq("bob")
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context "#update" do
|
||||
it 'should update a group' do
|
||||
group.add_owner(user)
|
||||
|
Reference in New Issue
Block a user