Commit 6dba727cb282ee19b5e4c6b0d0e3ec3bff01ac63

Authored by Christian Simon
1 parent 149ccd5d

Add test for duplicate group paths

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
spec/requests/api/groups_spec.rb
... ... @@ -83,6 +83,11 @@ describe Gitlab::API do
83 83 post api("/groups", admin), attributes_for(:group)
84 84 response.status.should == 201
85 85 end
  86 +
  87 + it "should not create group, duplicate" do
  88 + post api("/groups", admin), {:name => "Duplicate Test", :path => group2.path}
  89 + response.status.should == 404
  90 + end
86 91 end
87 92 end
88 93 end
... ...