diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-04-05 20:20:11 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-04-05 20:25:35 +0300 |
commit | f51adf8c6ef403858068554022ff34aaca97a7ba (patch) | |
tree | e405829c5ae5cffab3ad31896cb5eab8a621f397 /spec/features/projects/new_project_spec.rb | |
parent | fec40d78a799a9cf0f71868053493ce6d34ebbce (diff) | |
download | gitlab-ce-f51adf8c6ef403858068554022ff34aaca97a7ba.tar.gz |
Add more tests for subgroups featuredz-inherit-create-group-permission
* subgroup can be created by owner of the group
* project can be created inside subgroup by owner of the group
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/features/projects/new_project_spec.rb')
-rw-r--r-- | spec/features/projects/new_project_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/projects/new_project_spec.rb b/spec/features/projects/new_project_spec.rb index 52196ce49bd..c66b9a34b86 100644 --- a/spec/features/projects/new_project_spec.rb +++ b/spec/features/projects/new_project_spec.rb @@ -71,6 +71,22 @@ feature "New project", feature: true do end end end + + context "with subgroup namespace" do + let(:group) { create(:group, :private, owner: user) } + let(:subgroup) { create(:group, parent: group) } + + before do + group.add_master(user) + visit new_project_path(namespace_id: subgroup.id) + end + + it "selects the group namespace" do + namespace = find("#project_namespace_id option[selected]") + + expect(namespace.text).to eq subgroup.full_path + end + end end context 'Import project options' do |