demarches-normaliennes/spec/models
Pierre de La Morinerie 5e05556ee8 dossiers: add a validation on dossier individual
Validate that a dossier on a `for_individual?` procedure always has
an `individual` associated record.

For this, the individual needs to be built before the record is
validated (i.e. even before the `before_create` callback is run).

This should help with #4596: now if a dossier is created without an
`individual`, or if the `invividual` record is later removed, the
validation will fail.
2020-01-08 10:48:22 +01:00
..
champs Save selection utilisateur as geo area 2019-08-01 11:38:09 +02:00
concern specs: fix a flaky repetitions test 2019-10-24 16:52:29 +02:00
types_de_champ Enable the Layout/SpaceInsideArrayLiteralBrackets 2019-01-03 10:53:50 +01:00
administrateur_spec.rb Remove administrateur active notion 2019-11-05 14:10:39 +01:00
administration_spec.rb instructeurs: replace calls to Instructeur.find_by(email: …) 2019-11-04 10:44:23 +01:00
assign_to_spec.rb Assign Factory: automatically link to procedure.defaut_groupe_factory 2019-09-03 06:47:02 +02:00
attestation_template_spec.rb Remove duplicated attachments 2019-09-17 18:12:53 +02:00
avis_spec.rb Invite experts to linked dossiers 2019-10-23 13:10:09 +02: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 Remove unused code and tests 2020-01-07 11:52:51 +01:00
champ_spec.rb Better champs factories 2019-07-10 16:41:34 +02:00
commentaire_spec.rb Rename gestionnaire in code to instructeur 2019-08-12 13:47:01 +02:00
dossier_spec.rb dossiers: add a validation on dossier individual 2020-01-08 10:48:22 +01: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
export_spec.rb Add Export Model 2019-12-18 13:13:15 +01: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
groupe_instructeur_spec.rb Add constraints to GroupeInstructeur 2019-10-23 21:47:20 +02:00
individual_spec.rb Individual: remove birthdate proxy 2018-04-04 15:27:30 +02:00
instructeur_spec.rb notifications_for_procedure is now based on instructeur.groupe_instructeurs 2019-10-25 09:42:17 +02:00
invite_spec.rb Enable the Layout/SpaceBeforeBlockBraces cop 2019-01-03 10:53:50 +01:00
procedure_overview_spec.rb DateTime.new => Time.zone.local 2018-10-26 10:10:20 +00:00
procedure_presentation_spec.rb instructeurs: fix ProcedurePresentation to use instructeur.user.email 2019-11-04 10:44:24 +01:00
procedure_spec.rb Add depubliee state to procedures 2019-12-04 16:52:41 +01:00
service_spec.rb refuse les numéros de tel invalides 2019-12-04 05:34:43 +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 Fix type_de_champ validation error 2019-11-06 12:54:07 +01:00
type_de_champ_spec.rb Fix public and private champs scopes 2018-02-14 18:13:23 +01:00
user_spec.rb fix flaky test 2019-11-18 17:26:28 +01:00