demarches-normaliennes/spec
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
..
controllers specs: don't create an implicit brouillon in all test cases 2020-01-07 17:59:11 +01:00
factories Add champ communes 2020-01-07 11:52:51 +01:00
features Remove unused code and tests 2020-01-07 11:52:51 +01:00
fixtures Remove unused code and tests 2020-01-07 11:52:51 +01:00
helpers helpers: allow dossier_display_state to take a state as input 2019-12-19 13:22:40 +01:00
jobs Bug with time zone: Time.zone.today looses time_zone and may breaks database comparisons 2019-12-11 17:34:10 +01:00
lib Remove unused code and tests 2020-01-07 11:52:51 +01:00
mailers Routing: send emails to the right group 2019-12-16 17:47:08 +01:00
middlewares Use rack_attack_enabled? 2019-08-20 13:29:29 +02:00
models dossiers: add a validation on dossier individual 2020-01-08 10:48:22 +01:00
policies champ_policy: allow instructeurs to access private annotations 2019-10-08 14:34:12 +02:00
serializers Dossier Factory: link procedure by defaut_groupe_instructeur 2019-09-03 06:47:02 +02:00
services Add champ communes 2020-01-07 11:52:51 +01:00
support features: refactor the editor specs 2019-11-27 11:58:46 +01:00
views Simplify view 2019-12-18 13:13:15 +01:00
rails_helper.rb Bump development gems 2018-03-06 16:17:22 +01:00
spec_helper.rb Use webdrivers gem to keep webdrivers updated 2019-11-06 11:20:40 +01:00