diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-10-06 18:05:14 +0000 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-10-06 18:05:14 +0000 |
commit | 75b2c9bf6f5529bf198fef92903ad27836487ca6 (patch) | |
tree | 2c5d9b4d5abe82538a449ffbf889eac07d67573d /spec | |
parent | 4c351e17eefb0f24979084219521f0426620a244 (diff) | |
download | gitlab-ce-75b2c9bf6f5529bf198fef92903ad27836487ca6.tar.gz |
Fix invalid parent path on group settings page
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/groups/group_settings_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/groups/group_settings_spec.rb b/spec/features/groups/group_settings_spec.rb index 59254ecc982..08fd9f8af2a 100644 --- a/spec/features/groups/group_settings_spec.rb +++ b/spec/features/groups/group_settings_spec.rb @@ -98,6 +98,22 @@ describe 'Edit group settings' do end end + describe 'edit group path' do + it 'has a root URL label for top-level group' do + visit edit_group_path(group) + + expect(find(:css, '.group-root-path').text).to eq(root_url) + end + + it 'has a parent group URL label for a subgroup group', :postgresql do + subgroup = create(:group, parent: group) + + visit edit_group_path(subgroup) + + expect(find(:css, '.group-root-path').text).to eq(group_url(subgroup.parent) + '/') + end + end + def update_path(new_group_path) visit edit_group_path(group) |