demarches-normaliennes/app
Pierre de La Morinerie 9f1407b6d7 expiration: fix the mailer arguments
The mailers expect serializable arguments, but were given
ActiveRecord::Relation objects instead. This made the mailers throw an
exception.

But how was that possible ? This code is tested, and the tests were
green.

Well, the specs spy on the mailer implementation, in order to check that
the mailers methods were properly called. Fair enough.

But if the specs mock the mailer code (instead of calling the original
implementation), we may not notice that the original implementation
rejects our method parameters.

Here this is the case: once we actually call the original implementation
the tests start to fail, because some arguments are not converted from
an ActiveRecord::Relation to a serializable array.

This is fixed by ensuring that the mailer code is executed (and doesn't
throw an exception).
2020-05-18 16:24:08 +02:00
..
assets replaced marianne logo for homepage 2020-05-14 14:08:05 +00:00
controllers unique emails + remove n+1 2020-05-18 12:46:42 +00:00
dashboards Remove non-existant columns from manager dashboards 2020-03-26 16:17:07 +01:00
fields manager: remove support for old pj 2019-07-30 16:11:17 +02:00
graphql expose attestationSocialeAttachment and attestationFiscaleAttachment 2020-05-06 17:25:04 +02:00
helpers app: remove the feature flag for pieces justificatives auto-upload 2020-05-14 17:39:07 +02:00
javascript javascript: ignore most common upload errors also in standard uploads 2020-05-18 11:50:29 +02:00
jobs Enable deletion of expired dossiers en_construction 2020-04-21 10:41:54 +02:00
lib make api entreprise call only if token not expired 2020-05-06 10:57:45 +02:00
mailers Handle processed dossiers in deletion mailers 2020-04-22 15:39:10 +02:00
models dossier: remove "Birthdate" column from export 2020-05-18 13:14:28 +00:00
policies policies: fix champ policy for guest users 2020-04-02 11:27:14 +02:00
serializers expose effectif_annuel dans api graphql 2020-04-23 09:53:27 +02:00
services expiration: fix the mailer arguments 2020-05-18 16:24:08 +02:00
validators gestion des 2 formats de bouton monavis 2019-09-17 13:39:45 +02:00
views indique à l'usager les pièces ajoutées au dossier 2020-05-18 16:01:13 +02:00