Merge branch 'master' into fixes/api

This commit is contained in:
Sebastian Ziebell 2013-02-13 10:31:06 +01:00
commit 375caeefcf
29 changed files with 224 additions and 94 deletions

View file

@ -115,6 +115,11 @@ describe Gitlab::API do
json_response['commit']['id'].should == '621491c677087aa243f165eab467bfdfbee00be1'
json_response['protected'].should == false
end
it "should return a 404 error if branch is not available" do
get api("/projects/#{project.id}/repository/branches/unknown", user)
response.status.should == 404
end
end
describe "PUT /projects/:id/repository/branches/:branch/protect" do