API: get a single wall note
This commit is contained in:
parent
b17e94c37b
commit
270a43370a
3 changed files with 33 additions and 0 deletions
|
@ -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!'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue