API: fixed adding a note
Now the correct attribute is checked if it's available or not. Also fixed a test.
This commit is contained in:
parent
3bb342b961
commit
d269d107d8
2 changed files with 2 additions and 3 deletions
|
@ -466,8 +466,7 @@ describe Gitlab::API do
|
|||
response.status.should == 200
|
||||
|
||||
json_response.should be_an Array
|
||||
#json_response.first['id'].should == project.repository.commit.id
|
||||
json_response.size.should == 1
|
||||
json_response.first['id'].should == project.repository.commit.id
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue