summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSebastian Ziebell <sebastian.ziebell@asquera.de>2013-02-27 18:12:02 +0100
committerSebastian Ziebell <sebastian.ziebell@asquera.de>2013-02-27 18:12:02 +0100
commitd269d107d86c600ab2add651f47cced8f601ae84 (patch)
tree7ed4d1c587152825272ddae2bc38dcd5e748885b /spec
parent3bb342b961f2a02098175e24855ab56fc1785c43 (diff)
downloadgitlab-ce-d269d107d86c600ab2add651f47cced8f601ae84.tar.gz
API: fixed adding a note
Now the correct attribute is checked if it's available or not. Also fixed a test.
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/projects_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb
index 71a33f85101..994c8d5ef2c 100644
--- a/spec/requests/api/projects_spec.rb
+++ b/spec/requests/api/projects_spec.rb
@@ -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