demarches-normaliennes/spec
Pierre de La Morinerie 71e1b6c973 models: delete AdministrateursProcedure when destroying Administrateur
By default, `has_and_belongs_to_many` properly deletes the record in
the join table.

However, as the association is declared manually with a
`has_many / through`, it doesn't delete the joined record automatically.

As we also lack a foreign-key contraint on the join table, that means
a dangling record remains in the join table.

To fix this, let's declare it a proper `has_and_belongs_to_many`
association, which will let the join record be deleted automatically
on destroy.
2022-03-01 16:58:04 +01:00
..
controllers Merge branch 'main' into US/fix-avis 2022-02-28 15:08:25 +01:00
factories fix(relation): avoid double association between procedure/procedure_revision/dossier_submitted_message 2022-02-25 14:01:18 +01:00
fixtures fix(parallel_download_queue): tophoeus does not like raise from a request handler [crash straight to first frame] 2022-01-07 14:24:37 +01:00
graphql fix(graphql): do not crash if attestation is nil 2021-12-08 13:12:42 +01:00
helpers fix a11y-8.9.1 2022-02-02 19:03:40 +01:00
jobs refactor(attestation_template): cleanup relationships 2022-02-11 08:45:32 +01:00
lib tasks: restore older after_party tasks 2022-02-22 15:39:16 +01:00
mailers mailer: improve notify_new_answer wording 2022-02-16 18:35:30 +01:00
middlewares specs: always require rails_helper 2020-03-31 12:48:32 +02:00
models models: delete AdministrateursProcedure when destroying Administrateur 2022-03-01 16:58:04 +01:00
policies factories: cleanup Administrateur, Instructeur and Expert factories 2021-10-26 12:03:30 +02:00
serializers fix(dossier): use depose_at instead of en_construction_at 2021-12-06 15:49:17 +01:00
services feat(ClamAV): add config to disable clamav usage 2022-02-15 09:15:47 +01:00
support Test (Capybara): add no-sandbox option to headless chrome driver 2022-02-04 17:34:10 +01:00
system specs: fix flaky "dossier brouillon" spec 2022-02-15 15:04:49 +01:00
views fix(expiration_banner.message): miss match when procedure was not expirable ; always showing expiration message 2022-02-11 15:49:37 +01:00
rails_helper.rb specs: use Instructeur.bypass_email_login_token in the tests 2021-12-02 08:51:52 +01:00
spec_helper.rb Chore(test): enable rspec only-failures support 2021-04-15 14:17:39 +02:00