diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-01-31 10:52:09 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2018-02-06 12:06:38 -0600 |
commit | 75144b1e03db342730535f1f49b0e7cd2987d755 (patch) | |
tree | 30295c514e238b48a646d77c6b453e2ec44319f4 /spec/models/namespace_spec.rb | |
parent | 8d69436c901a3eee674e72c67d91de3994d30e0c (diff) | |
download | gitlab-ce-75144b1e03db342730535f1f49b0e7cd2987d755.tar.gz |
Validate path uniqueness only on Route, and bubble up appropriately
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r-- | spec/models/namespace_spec.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb index 5e126bc4bea..191b60e4383 100644 --- a/spec/models/namespace_spec.rb +++ b/spec/models/namespace_spec.rb @@ -15,7 +15,6 @@ describe Namespace do describe 'validations' do it { is_expected.to validate_presence_of(:name) } - it { is_expected.to validate_uniqueness_of(:name).scoped_to(:parent_id) } it { is_expected.to validate_length_of(:name).is_at_most(255) } it { is_expected.to validate_length_of(:description).is_at_most(255) } it { is_expected.to validate_presence_of(:path) } |