demarches-normaliennes/spec/models
Nicolas Bouilleaud a4166d3c57 Refactor Instructeur.notifications_* methods
- rename `dossiers_id_with_notifications` to `followed_dossiers_with_notifications`,
- rename `notifications_per_procedure` to `procedures_with_notifications`,
- return an ActiveRecord::Relation instead of the result of the query, so that the call place can compose it,
- `merge` with the wanted Dossier scope in the call places, don’t bother passing it as a parameter,
- use the “state” (now “scope”) parameter as a scope method that can be just applied on `Dossier`.
2019-09-25 14:10:00 +02:00
..
champs Save selection utilisateur as geo area 2019-08-01 11:38:09 +02:00
concern Serialize champ repetition for tags 2019-09-12 17:23:18 +02:00
types_de_champ Enable the Layout/SpaceInsideArrayLiteralBrackets 2019-01-03 10:53:50 +01:00
administrateur_spec.rb Migrate to flipper 2019-09-10 16:10:14 +02:00
administration_spec.rb Fix manager invite administrateur 2019-08-14 16:34:50 +02:00
assign_to_spec.rb Assign Factory: automatically link to procedure.defaut_groupe_factory 2019-09-03 06:47:02 +02:00
attestation_template_spec.rb Remove duplicated attachments 2019-09-17 18:12:53 +02:00
avis_spec.rb Rename gestionnaire in code to instructeur 2019-08-12 13:47:01 +02:00
bill_signature_spec.rb Tweak codestyle in specs, following review 2019-06-17 16:16:28 +02:00
champ_private_spec.rb Unify :type_de_champ public/private factories 2018-02-14 11:49:06 +01:00
champ_shared_example.rb Better handle empty user selection layers 2018-10-23 09:35:25 +02:00
champ_spec.rb Better champs factories 2019-07-10 16:41:34 +02:00
commentaire_spec.rb Rename gestionnaire in code to instructeur 2019-08-12 13:47:01 +02:00
dossier_spec.rb Dossier: retrieve all dossiers for a procedure 2019-09-18 15:51:02 +02:00
drop_down_list_spec.rb Remove ChampDecorator 2019-01-03 12:08:25 +01:00
etablissement_spec.rb Save SIRET data on search 2019-03-19 16:22:42 +01:00
exercice_spec.rb Remove useless tests 2017-07-19 13:32:59 +02:00
france_connect_information_spec.rb FC information: remove funny find_by 2018-01-15 17:14:12 +01:00
france_connect_particulier_client_spec.rb describe '#method' rather than describe '.method' for instance methods 2018-03-20 16:00:30 +01:00
individual_spec.rb Individual: remove birthdate proxy 2018-04-04 15:27:30 +02:00
instructeur_spec.rb Refactor Instructeur.notifications_* methods 2019-09-25 14:10:00 +02:00
invite_spec.rb Enable the Layout/SpaceBeforeBlockBraces cop 2019-01-03 10:53:50 +01:00
procedure_overview_spec.rb DateTime.new => Time.zone.local 2018-10-26 10:10:20 +00:00
procedure_presentation_spec.rb ProcedurePresentation: can use groupe instructeur 2019-09-18 15:51:02 +02:00
procedure_spec.rb Refactor and redesign publish modal 2019-09-17 16:30:48 +02:00
service_spec.rb [fix #3315] Migrate service organisme 2019-02-18 16:50:44 +01:00
siret_spec.rb [Fix #2618] Do not enforce Luhn for La Poste SIRET numbers 2018-09-19 10:29:43 +02:00
trusted_device_token_spec.rb trustedDeviceToken: move token youth 2019-02-18 17:20:49 +01:00
type_de_champ_private_spec.rb Unify :type_de_champ public/private factories 2018-02-14 11:49:06 +01:00
type_de_champ_shared_example.rb Clone nested types_de_champ 2019-02-06 10:05:27 +01:00
type_de_champ_spec.rb Fix public and private champs scopes 2018-02-14 18:13:23 +01:00
user_spec.rb add User.create_or_promote_to_instructeur 2019-08-20 12:20:12 +02:00