Commit a8f2977c6ac969e91180d06cd3c9ceffed48fd58
1 parent
435740b8
Exists in
spb-stable
and in
2 other branches
More fixup for HoundCI. Fix up some small issues in docs.
Showing
2 changed files
with
8 additions
and
7 deletions
Show diff stats
doc/api/repositories.md
... | ... | @@ -59,9 +59,9 @@ Parameters: |
59 | 59 | "message": "Initial commit", |
60 | 60 | "authored_date": "2012-05-28T04:42:42-07:00", |
61 | 61 | "author_name": "John Smith", |
62 | - "author email": "john@example.com" | |
62 | + "author email": "john@example.com", | |
63 | 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 | 65 | "committer_email": "jack@example.com" |
66 | 66 | }, |
67 | 67 | "protected": false | ... | ... |
spec/requests/api/repositories_spec.rb
... | ... | @@ -26,17 +26,18 @@ describe API::API, api: true do |
26 | 26 | describe 'POST /projects/:id/repository/tags' do |
27 | 27 | it 'should create a new tag' do |
28 | 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 | 32 | response.status.should == 201 |
33 | 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 | 36 | end |
36 | 37 | it 'should deny for user without push access' do |
37 | 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 | 42 | response.status.should == 403 |
42 | 43 | end | ... | ... |