summaryrefslogtreecommitdiff
path: root/spec/models/namespace_spec.rb
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-05-25 13:57:22 +0200
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-05-25 13:57:22 +0200
commit7ec89692858a207691489aed566af7785a923895 (patch)
treedfad4c6ea77f322b68db974102c5ec54fe0366f6 /spec/models/namespace_spec.rb
parent2f62af684e127010cffd81e027f469dcde3bc9b2 (diff)
parent78de1c059ac588df4ba1ef352b28e5b1c6102804 (diff)
downloadgitlab-ce-7ec89692858a207691489aed566af7785a923895.tar.gz
Merge branch 'master' into zj-realtime-env-list
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r--spec/models/namespace_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb
index 8624616316c..312302afdbb 100644
--- a/spec/models/namespace_spec.rb
+++ b/spec/models/namespace_spec.rb
@@ -37,7 +37,7 @@ describe Namespace, models: true do
it 'rejects nested paths' do
parent = create(:group, :nested, path: 'environments')
- namespace = build(:project, path: 'folders', namespace: parent)
+ namespace = build(:group, path: 'folders', parent: parent)
expect(namespace).not_to be_valid
end