demarches-normaliennes/spec/models
Nicolas Bouilleaud 8fa630d2bb Remove Gestionnaire.visible_procedures
It is actually the same thing as Gestionnaire.procedures. It already included the procedures with paths as well as the archived procedures, and in production, there were no Gestionnaire for who procedures was returning a different result than visible_procedures (expect for two baddata brouillon procedures with a nil path).

In addition, Procedure.path is now nonnull, which means the Procedure.avec_lien scope is pointless.

Finally, the current spec showed that the only procedure not visible to the gestion was the one he was not assigned to.
2019-09-17 16:30:48 +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 Add Style/CollectionMethods to rubocop 2019-09-12 14:48:18 +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 Add Style/CollectionMethods to rubocop 2019-09-12 14:48:18 +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 Remove Gestionnaire.visible_procedures 2019-09-17 16:30:48 +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 Rename gestionnaire in code to instructeur 2019-08-12 13:47:01 +02:00
procedure_spec.rb Procedure has many instructeurs with defaut_groupe_instructeur 2019-09-02 11:41:12 +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