diff options
author | Christian Simon <cs@f03.eu> | 2013-02-01 21:58:53 +0400 |
---|---|---|
committer | Christian Simon <cs@f03.eu> | 2013-02-01 21:58:53 +0400 |
commit | 6dba727cb282ee19b5e4c6b0d0e3ec3bff01ac63 (patch) | |
tree | 4c07a60463092750ceb794bf5dbc5270411a45a5 /spec | |
parent | 149ccd5d91abf0c4b7ec610c03ad46a8ad17eec2 (diff) |
Add test for duplicate group paths
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/groups_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/requests/api/groups_spec.rb b/spec/requests/api/groups_spec.rb index c9980db9ad6..c39a4228408 100644 --- a/spec/requests/api/groups_spec.rb +++ b/spec/requests/api/groups_spec.rb @@ -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 |