Commit a8f2977c6ac969e91180d06cd3c9ceffed48fd58

Authored by Sean Edge
1 parent 435740b8

More fixup for HoundCI. Fix up some small issues in docs.

doc/api/repositories.md
@@ -59,9 +59,9 @@ Parameters: @@ -59,9 +59,9 @@ Parameters:
59 "message": "Initial commit", 59 "message": "Initial commit",
60 "authored_date": "2012-05-28T04:42:42-07:00", 60 "authored_date": "2012-05-28T04:42:42-07:00",
61 "author_name": "John Smith", 61 "author_name": "John Smith",
62 - "author email": "john@example.com" 62 + "author email": "john@example.com",
63 "committer_name": "Jack Smith", 63 "committer_name": "Jack Smith",
64 - "committed_date": "2012-05-28T04:42:42-07:00" 64 + "committed_date": "2012-05-28T04:42:42-07:00",
65 "committer_email": "jack@example.com" 65 "committer_email": "jack@example.com"
66 }, 66 },
67 "protected": false 67 "protected": false
spec/requests/api/repositories_spec.rb
@@ -26,17 +26,18 @@ describe API::API, api: true do @@ -26,17 +26,18 @@ describe API::API, api: true do
26 describe 'POST /projects/:id/repository/tags' do 26 describe 'POST /projects/:id/repository/tags' do
27 it 'should create a new tag' do 27 it 'should create a new tag' do
28 post api("/projects/#{project.id}/repository/tags", user), 28 post api("/projects/#{project.id}/repository/tags", user),
29 - tag_name: 'v1.0.0',  
30 - ref: '621491c677087aa243f165eab467bfdfbee00be1' 29 + tag_name: 'v1.0.0',
  30 + ref: '621491c677087aa243f165eab467bfdfbee00be1'
31 31
32 response.status.should == 201 32 response.status.should == 201
33 json_response.first['name'].should == 'v1.0.0' 33 json_response.first['name'].should == 'v1.0.0'
34 - json_response['commit']['id'].should == '621491c677087aa243f165eab467bfdfbee00be1' 34 + json_response['commit']['id'].should ==
  35 + '621491c677087aa243f165eab467bfdfbee00be1'
35 end 36 end
36 it 'should deny for user without push access' do 37 it 'should deny for user without push access' do
37 post api("/projects/#{project.id}/repository/tags", user2), 38 post api("/projects/#{project.id}/repository/tags", user2),
38 - tag_name: 'v1.0.0',  
39 - ref: '621491c677087aa243f165eab467bfdfbee00be1' 39 + tag_name: 'v1.0.0',
  40 + ref: '621491c677087aa243f165eab467bfdfbee00be1'
40 41
41 response.status.should == 403 42 response.status.should == 403
42 end 43 end