mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +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:
parent
fd95c971ec
commit
2442bba131
9 changed files with 168 additions and 65 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue