Add test for duplicate group paths

This commit is contained in:
Christian Simon 2013-02-01 18:58:53 +01:00
parent 149ccd5d91
commit 6dba727cb2

View file

@ -83,6 +83,11 @@ describe Gitlab::API do
post api("/groups", admin), attributes_for(:group) post api("/groups", admin), attributes_for(:group)
response.status.should == 201 response.status.should == 201
end 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 end
end end