demarches-normaliennes/app/services
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
..
administrateur_usage_statistics_service.rb admin: fix sql column ambiguity 2020-02-04 16:21:42 +01:00
api_carto_service.rb Expose multiple user selections on champ carte 2020-04-15 18:07:09 +02:00
api_entreprise_service.rb fetch and store bilans bdf 2020-04-30 16:15:16 +02:00
bill_signature_service.rb Bug with time zone: Time.zone.today looses time_zone and may breaks database comparisons 2019-12-11 17:34:10 +01:00
browser_support.rb Update browser gem 2020-03-17 11:25:20 +01:00
clamav_service.rb If ClamavService fails then raise an error 2019-02-05 17:58:41 +01:00
commentaire_service.rb Rename gestionnaire in code to instructeur 2019-08-12 13:47:01 +02:00
dossier_search_service.rb fix to_tsquery disallowed chars 2020-04-20 15:15:22 +02:00
expired_dossiers_deletion_service.rb expiration: fix the mailer arguments 2020-05-18 16:24:08 +02:00
france_connect_service.rb eIDAS level added to France Connect authorization call 2020-03-26 14:07:32 +01:00
geojson_service.rb Expose multiple user selections on champ carte 2020-04-15 18:07:09 +02:00
ip_service.rb Simplify ip_service 2019-08-20 13:29:29 +02:00
notification_service.rb remove email_notifications_enabled column because of the new daily_email_notifications_enabled 2020-02-27 11:09:19 +01:00
pieces_justificatives_service.rb 4378 Ajout des PJ de la messagerie dans le zip des PJs du dossier 2019-11-25 10:36:32 +01:00
pipedrive_service.rb Add nb_of_dossiers by years and deadline to PipeDrive Person 2019-06-04 16:55:11 +02:00
procedure_export_service.rb Drop old export service 2019-11-21 10:25:40 +01:00
render_partial_service.rb Enable the Lint/StringConversionInInterpolation cop 2019-01-03 10:53:50 +01:00
staging_auth_service.rb [ENV] Basic auth config 2018-08-23 15:55:32 +02:00
zxcvbn_service.rb Add Style/CollectionMethods to rubocop 2019-09-12 14:48:18 +02:00