Add test for duplicate group paths
This commit is contained in:
parent
149ccd5d91
commit
6dba727cb2
|
@ -83,6 +83,11 @@ describe Gitlab::API do
|
|||
post api("/groups", admin), attributes_for(:group)
|
||||
response.status.should == 201
|
||||
end
|
||||
|
||||
it "should not create group, duplicate" do
|
||||
post api("/groups", admin), {:name => "Duplicate Test", :path => group2.path}
|
||||
response.status.should == 404
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue