diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-11-29 15:52:56 -0800 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-11-29 15:52:56 -0800 |
commit | ee6187bd554f6f257600a67f65f8af95cf9afa9a (patch) | |
tree | 64796fc07332ea345d0a68c7eaf21e6a2367c715 /spec | |
parent | 2a98a060caccd82ec8cd9bcead886142f766c069 (diff) | |
download | gitlab-ce-ee6187bd554f6f257600a67f65f8af95cf9afa9a.tar.gz |
API: ability to create a wall note
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/notes_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/requests/api/notes_spec.rb b/spec/requests/api/notes_spec.rb index b7c8ffaf320..dc02e7a3efa 100644 --- a/spec/requests/api/notes_spec.rb +++ b/spec/requests/api/notes_spec.rb @@ -30,6 +30,14 @@ describe Gitlab::API do end end + describe "POST /projects/:id/notes" do + it "should create a new wall note" do + post api("/projects/#{project.id}/notes", user), body: 'hi!' + response.status.should == 201 + json_response['body'].should == 'hi!' + end + end + describe "GET /projects/:id/noteable/:noteable_id/notes" do context "when noteable is an Issue" do it "should return an array of issue notes" do |