summaryrefslogtreecommitdiff
path: root/spec/models/abuse_report_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-12/+0
| | | | | | | | | In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
* Clearify who deletes the userZeger-Jan van de Weg2016-03-151-3/+4
|
* Fix broken specsZeger-Jan van de Weg2016-03-151-9/+6
|
* Use a more sensible message for the AbuseReport uniqueness validationrs-abuse-report-validationRobert Speicher2016-01-161-1/+1
| | | | | Previously it was "user has already been taken", when really we were saying the user has already been reported.
* Block the reported user before destroying the recordrs-block-user-before-removalRobert Speicher2016-01-121-0/+16
| | | | | | | | This is intended to prevent the user from creating new objects while the transaction that removes them is being run, resulting in objects with nil authors which can then not be edited. See https://gitlab.com/gitlab-org/gitlab-ce/issues/7117
* Add `AbuseReport#notify`rs-abuse-reports-refactorRobert Speicher2016-01-041-0/+17
| | | | Tell, Don't Ask.
* Streamline the "Report button"rymai/gitlab-ce-disable-report-button-if-already-reportedRémy Coutable2015-09-291-0/+12
| | | | | | This simplifies the "Report button" to not use open a dropdown and adds a tooltip on this button. This also removes an extra spec and adds missing specs.
* Re-annotate modelsStan Hu2015-09-061-0/+12
|
* Allow users to send abuse reportsDmitriy Zaporozhets2015-08-061-0/+7
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>