demarches-normaliennes/spec/features
Pierre de La Morinerie 75a1046315 active_storage: refactor concerns
Follow-up of #5953.

Refactor the concerns with two goals:

- Getting closer from the way ActiveStorage adds its own hooks.
  Usually ActiveStorage does this using an `Attachment#after_create`
  hook, which then delegates to the blob to enqueue the job.
- Enqueuing each job only once. By hooking on `Attachment#after_create`,
  we guarantee each job will be added only once.

We then let the jobs themselves check if they are relevant or not, and
retry or discard themselves if necessary.

We also need to update the tests a bit, because Rails'
`perform_enqueued_jobs(&block)` test helper doesn't honor the `retry_on`
clause of jobs. Instead it forwards the exception to the caller – which
makes the test fail.

Instead we use the inline version of `perform_enqueued_jobs()`, without
a block, which properly ignores errors catched by retry_on.
2021-03-16 11:49:14 +01:00
..
accessibilite rend plus compréhensible la civilité 2020-12-08 18:31:38 +01:00
admin admin: durée de conservation des données hors ds n'est plus demandée 2021-02-17 16:41:57 +01:00
france_connect Revert "Merge pull request #5710 from betagouv/revert-5705-feat/5701" 2020-11-05 19:30:13 +01:00
instructeurs active_storage: refactor concerns 2021-03-16 11:49:14 +01:00
new_administrateur update features specs to use revisions 2020-09-02 11:26:26 +02:00
routing accepte nouvelles valeurs pour ComboMultipleDropdownList 2021-02-16 16:47:15 +01:00
sessions adapting the specs 2020-09-01 16:48:41 +02:00
users rend accessible la selection multiple usager 2021-02-16 16:47:14 +01:00
help_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
outdated_browser_spec.rb ajout d'une bannière de dépréciation pour IE11 2020-07-06 10:01:02 +02:00