diff --git a/lib/api/notes.rb b/lib/api/notes.rb
index 759fd3a98199099a6523f31d2299307b8b4d110c..097cc7ea4752d215bf4a287b2a7b31aa6fe917c7 100644
--- a/lib/api/notes.rb
+++ b/lib/api/notes.rb
@@ -93,7 +93,7 @@ module Gitlab
         #   POST /projects/:id/issues/:noteable_id/notes
         #   POST /projects/:id/snippets/:noteable_id/notes
         post ":id/#{noteables_str}/:#{noteable_id_str}/notes" do
-          required_attributes! [:"#{noteable_id_str}"]
+          required_attributes! [:body]
 
           @noteable = user_project.send(:"#{noteables_str}").find(params[:"#{noteable_id_str}"])
           @note = @noteable.notes.new(note: params[:body])
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb
index 71a33f8510172e979fb42390572c89884b816fec..994c8d5ef2c0d524b8936f25bac0577e4bd7124d 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