Merge pull request #2124 from NARKOZ/api

remove unnecessary API::VERSION constant
This commit is contained in:
Dmitriy Zaporozhets 2012-12-02 03:30:30 -08:00
commit e117414e44
8 changed files with 40 additions and 6 deletions

View file

@ -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!'