summaryrefslogtreecommitdiff
path: root/spec/requests/api/notes_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Update specs to rails5 formatblackst0ne-convert-specs-rails5-styleblackst0ne2018-12-191-3/+3
| | | | | | | | | | Updates specs to use new rails5 format. The old format: `get :show, { some: params }, { some: headers }` The new format: `get :show, params: { some: params }, headers: { some: headers }`
* Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao2018-07-111-1/+1
|
* Updates from `rubocop -a`Lin Jen-Shin2018-07-091-2/+2
|
* Add discussion APIjprovazn-apiJan Provaznik2018-03-071-505/+85
| | | | | * adds basic discussions API for issues and snippets * reorganizes notes specs (so same tests can be used for all noteable types - issues, MRs, snippets)
* Cache merged and closed events data in merge_request_metrics tableOswaldo Ferreira2018-01-021-1/+1
|
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-221-2/+2
|
* support ordering of project notes in notes apihaseeb2017-11-291-0/+124
|
* Refactor `have_http_status` into `have_gitlab_http_status` in the specsJacopo2017-10-201-46/+46
|
* Create system notes for MR too, improve doc + clean up codeJarka Kadlecova2017-09-141-0/+34
|
* Add tests for the unmodified headerRobert Schilling2017-08-281-0/+12
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-5/+5
|
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-2/+2
|
* Correct RSpec/SingleLineHook cop offensesRobert Speicher2017-06-141-3/+9
|
* Unnecessary "include WaitForAjax" and "include ApiHelpers"Jacopo2017-04-211-2/+1
| | | | | Removed all the unnecessary include of `WaitForAjax` and `ApiHelpers` in the specs. Removed unnecessary usage of `api:true`
* API: Make the /notes endpoint work with noteable iid instead of idToon Claes2017-03-271-30/+30
| | | | | | | | | | | | | | | | In API V4 all endpoints were changed so Merge Requests and Issues should be referred by iid, instead of id. Except the /notes endpoint was forgotten. So change the endpoints from: - /projects/:id/issues/:issue_id/notes - /projects/:id/merge_requests/:merge_request_id/notes To: - /projects/:id/issues/:issue_iid/notes - /projects/:id/merge_requests/:merge_request_iid/notes For Project Snippets nothing changes.
* Merge branch '25437-just-emoji' into 'master'Sean McGivern2017-03-011-2/+2
|\ | | | | | | | | | | | | #25437 Allow posting of just an emoji in comment; add /award slash command Closes #25437 See merge request !9382
| * add /award slash commandmhasbini2017-02-281-2/+2
| | | | | | | | add /award slash command; Allow posting of just an emoji in comment
* | Return 204 for delete endpointsRobert Schilling2017-02-281-3/+3
|/
* Remove shared example for paginationremove-paginated-ressourceRobert Schilling2017-02-201-4/+0
|
* Add a custom pagination matcherRobert Schilling2017-02-161-0/+5
|
* Merge branch 'fix-guest-access-posting-to-notes' into 'security' Robert Speicher2017-01-231-0/+12
| | | | | Prevent users from creating notes on resources they can't access See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2054
* Replace many :project with :empty_projects in API specsuse-empty_project-factory-in-api-specsRémy Coutable2017-01-171-4/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'update-api-spec-files' into 'master' Rémy Coutable2016-12-021-1/+1
|\ | | | | | | | | | | | | Update API spec files to describe the correct class by changing `API::API` to the corresponding class, for example `API::AwardEmoji`. Closes #24902 See merge request !7718
| * Changed API spec files to describe the correct classLivier2016-11-281-1/+1
| | | | | | | | | | | | | | | | Restore changes for api spec files Fix error in rspec Users Delete extra space Repositories-spec
* | Rephrase some system notes to be compatible with new system note stylerephrase-system-notesDouwe Maan2016-11-241-1/+1
|/
* Fix authored vote from notesbarthc2016-10-241-2/+13
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add a be_like_time matcher and use it in specsNick Thomas2016-10-171-1/+1
| | | | | | The amount of precision times have in databases is variable, so we need tolerances when comparing in specs. It's better to have the tolerance defined in one place than several.
* Fix API notes endpoint when posting only emojiZ.J. van de Weg2016-09-161-0/+9
|
* Capitalize mentioned issue timeline notesClement Ho2016-08-251-1/+1
|
* adds second batch of tests changed to active tenseactive-tense-test-coveragetiagonbotelho2016-08-091-28/+28
|
* Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-011-3/+0
|
* Use HTTP matchers if possibleZ.J. van de Weg2016-06-271-41/+41
|
* Update specs for creating new note without accessGrzegorz Bizon2016-05-291-2/+2
|
* Fix single note api requestFelipe Artur2016-05-161-3/+14
|
* Fix notes API calls symbol convertionsFelipe Artur2016-05-101-0/+31
|
* Fix api leaking notes when user is not authorized to read noteableFelipe Artur2016-05-091-0/+19
|
* Prevent privilege escalation via notes APIRobert Speicher2016-04-261-10/+31
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15577
* Allow back dating notes on creationMichael Greene2016-04-131-0/+13
|
* Adapt tests to new testing guidelinesRobert Schilling2016-04-121-6/+6
|
* Fix code review issuesRobert Schilling2016-04-121-1/+19
|
* Delete notes via APIRobert Schilling2016-04-121-0/+43
|
* Add pagination headers to already paginated API resourcesadd-pagination-headers-to-apiRémy Coutable2016-01-141-0/+4
|
* Fix specs and rubocop warningsfix/private-referencesRémy Coutable2016-01-141-5/+6
|
* Ensure the API doesn't return notes that the current user shouldn't seeRémy Coutable2016-01-131-0/+51
|
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-121-39/+39
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Implemented notes (body) patching in API.uran2014-12-251-0/+54
|
* Remove rails observers from applicationDmitriy Zaporozhets2014-06-171-7/+0
|
* Fix api specsDmitriy Zaporozhets2014-06-131-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Delete wall notes testsDmitriy Zaporozhets2014-06-131-50/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>