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:
Guo Xiang Tan
2017-07-27 15:39:47 +09:00
parent fd95c971ec
commit 2442bba131
9 changed files with 168 additions and 65 deletions

View File

@ -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)