diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-12-01 02:20:45 -0800 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-12-01 02:20:45 -0800 |
commit | 270a43370a4cd9e5f222ad707f68f42088d5ae06 (patch) | |
tree | 3925239a14c96c145860eacec4749df146f85438 /spec | |
parent | b17e94c37bd5868c44f3aa085bfc3e44e227dc07 (diff) | |
download | gitlab-ce-270a43370a4cd9e5f222ad707f68f42088d5ae06.tar.gz |
API: get a single 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 dc02e7a3efa..681ba01558e 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 "GET /projects/:id/notes/:note_id" do + it "should return a wall note by id" do + get api("/projects/#{project.id}/notes/#{wall_note.id}", user) + response.status.should == 200 + json_response['body'].should == wall_note.note + 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!' |