diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-04-28 19:09:01 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-01 12:14:24 +0300 |
commit | 08b1bc3489e8d4e6d5786221bad090f16a1c021f (patch) | |
tree | 17f98937621003472feb6d5717bc5c1facc62964 /spec/models/group_spec.rb | |
parent | 1e14c3c8525c4e9db6f83da6c037ed94205f65f0 (diff) |
Reject group-routes as names of child namespaces
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r-- | spec/models/group_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index 7b076d09585..a11805926cc 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -76,6 +76,12 @@ describe Group, models: true do expect(group).not_to be_valid end + + it 'rejects reserved group paths' do + group = build(:group, path: 'activity', parent: create(:group)) + + expect(group).not_to be_valid + end end end |