demarches-normaliennes/spec/lib/active_storage
Pierre de La Morinerie 6328011f60 models: require belong_to associations on champ
- Make `champ.dossier` a requirement;
- Move the dossier_id assignation to `before_validation` (otherwise
the record is invalid, and never gets saved);
- Allow specs to only build the champ (instead of saving it to the
database), which bypasses the requirement to have a dossier.
2020-08-18 15:57:37 +02:00
..
downloadable_file_spec.rb models: require belong_to associations on champ 2020-08-18 15:57:37 +02:00