diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-12 15:43:29 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-12 15:43:29 +0200 |
commit | dc39c8372d760eceba50a35505dad8663b9e851e (patch) | |
tree | f4fbba5d35ea707d430b624a9f63c84649c5211f /lib | |
parent | 49484f9a2c2efb670f044028c555f00378484dd4 (diff) | |
download | gitlab-ce-dc39c8372d760eceba50a35505dad8663b9e851e.tar.gz |
Adapt tests to new testing guidelines
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/notes.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb index 2ed986b9ec5..a1c98f5e8ff 100644 --- a/lib/api/notes.rb +++ b/lib/api/notes.rb @@ -124,7 +124,9 @@ module API delete ":id/#{noteables_str}/:#{noteable_id_str}/notes/:note_id" do note = user_project.notes.find(params[:note_id]) authorize! :admin_note, note + ::Notes::DeleteService.new(user_project, current_user).execute(note) + present note, with: Entities::Note end end |