demarches-normaliennes/spec/models
Pierre de La Morinerie a8354bd103 dossiers: unify deletion of dossiers between manager and user
The code paths for deleting a dossier were different, depending on
whether the dossier was deleted by the user, or from the Manager.

This commit unifies the two code paths into one.

This has the effect of:

- An operation log is now recorded when an user deletes its own dossier;
- Gestionnaires are now notified even when the dossier is deleted from
  the Manager;
- The `support:delete_user_account` task now requires the email address
  of the author.
2019-07-16 16:22:20 +02:00
..
champs champs: put champ label in numeric fields validation messages 2019-07-11 15:12:48 +02:00
concern Before save copy body in rich_body 2019-07-03 13:15:49 +02:00
types_de_champ Enable the Layout/SpaceInsideArrayLiteralBrackets 2019-01-03 10:53:50 +01:00
administrateur_spec.rb Spec Factory: an administrateur always has a gestionnaire 2019-01-09 13:49:47 +01:00
administration_spec.rb An admin has always a gestionnaire role 2018-11-13 10:41:45 +01:00
assign_to_spec.rb [Fix #2604] Handle ProcedurePresentations that have gone invalid 2018-10-23 16:41:51 +02:00
attestation_template_spec.rb Time.now => Time.zone.now 2018-10-26 10:10:20 +00:00
avis_spec.rb Enable the Layout/SpaceBeforeBlockBraces cop 2019-01-03 10:53:50 +01:00
bill_signature_spec.rb Tweak codestyle in specs, following review 2019-06-17 16:16:28 +02:00
champ_private_spec.rb Unify :type_de_champ public/private factories 2018-02-14 11:49:06 +01:00
champ_shared_example.rb Better handle empty user selection layers 2018-10-23 09:35:25 +02:00
champ_spec.rb Better champs factories 2019-07-10 16:41:34 +02:00
commentaire_spec.rb Validate messagerie_available? when creating a new Commentaire 2019-07-08 16:13:43 +02:00
dossier_spec.rb dossiers: unify deletion of dossiers between manager and user 2019-07-16 16:22:20 +02:00
drop_down_list_spec.rb Remove ChampDecorator 2019-01-03 12:08:25 +01:00
etablissement_spec.rb Save SIRET data on search 2019-03-19 16:22:42 +01:00
exercice_spec.rb Remove useless tests 2017-07-19 13:32:59 +02:00
france_connect_information_spec.rb FC information: remove funny find_by 2018-01-15 17:14:12 +01:00
france_connect_particulier_client_spec.rb describe '#method' rather than describe '.method' for instance methods 2018-03-20 16:00:30 +01:00
gestionnaire_spec.rb [fix #4008] secured login for all gestionnaires 2019-07-01 15:06:39 +02:00
individual_spec.rb Individual: remove birthdate proxy 2018-04-04 15:27:30 +02:00
invite_spec.rb Enable the Layout/SpaceBeforeBlockBraces cop 2019-01-03 10:53:50 +01:00
piece_justificative_spec.rb [Fix #2833] Move /support files to /fixtures 2018-10-16 10:47:41 +02:00
procedure_overview_spec.rb DateTime.new => Time.zone.local 2018-10-26 10:10:20 +00:00
procedure_presentation_spec.rb Allow filtering ProcedurePresentation by followers_gestionnaires 2019-04-10 14:32:51 +02:00
procedure_spec.rb Make sure that there always is at least one administrator per Procedure 2019-05-06 16:19:08 +02:00
service_spec.rb [fix #3315] Migrate service organisme 2019-02-18 16:50:44 +01:00
siret_spec.rb [Fix #2618] Do not enforce Luhn for La Poste SIRET numbers 2018-09-19 10:29:43 +02:00
trusted_device_token_spec.rb trustedDeviceToken: move token youth 2019-02-18 17:20:49 +01:00
type_de_champ_private_spec.rb Unify :type_de_champ public/private factories 2018-02-14 11:49:06 +01:00
type_de_champ_shared_example.rb Clone nested types_de_champ 2019-02-06 10:05:27 +01:00
type_de_champ_spec.rb Fix public and private champs scopes 2018-02-14 18:13:23 +01:00
type_de_piece_justificative_spec.rb Remove useless tests 2017-07-19 13:32:59 +02:00
user_spec.rb Activate device email change confirmation 2019-07-09 11:55:17 +02:00