Rspec fixes
This commit is contained in:
parent
dccd8b6eaa
commit
afbdbb0c95
22 changed files with 149 additions and 199 deletions
|
@ -13,7 +13,7 @@ module Gitlab
|
|||
# Example Request:
|
||||
# GET /projects/:id/notes
|
||||
get ":id/notes" do
|
||||
@notes = user_project.common_notes
|
||||
@notes = user_project.notes.common
|
||||
present paginate(@notes), with: Entities::Note
|
||||
end
|
||||
|
||||
|
@ -25,7 +25,7 @@ module Gitlab
|
|||
# Example Request:
|
||||
# GET /projects/:id/notes/:note_id
|
||||
get ":id/notes/:note_id" do
|
||||
@note = user_project.common_notes.find(params[:note_id])
|
||||
@note = user_project.notes.common.find(params[:note_id])
|
||||
present @note, with: Entities::Note
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue