Commit 6dba727c authored by Christian Simon's avatar Christian Simon

Add test for duplicate group paths

parent 149ccd5d
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment