demarches-normaliennes/spec
François Vantomme 99086a63be Fix (Instructeur): deal nicely with non-guaranteed elements order in arrays
Use of one-dimension arrays comparison & `contain_exactly` RSpec matcher
to avoid this behaviour:

Failures:
  1) InstructeursImportService#import when an email is malformed ignores or corrects
     Failure/Error:
       expect(procedure_groupes).to match_array([
         ["Occitanie", ["paul@mccartney.uk", "ringo@starr.uk"]],
         ["défaut", []]
       ])
       expected collection contained:  [["Occitanie", ["paul@mccartney.uk", "ringo@starr.uk"]], ["défaut", []]]
       actual collection contained:    [["Occitanie", ["ringo@starr.uk", "paul@mccartney.uk"]], ["défaut", []]]
       the missing elements were:      [["Occitanie", ["paul@mccartney.uk", "ringo@starr.uk"]]]
       the extra elements were:        [["Occitanie", ["ringo@starr.uk", "paul@mccartney.uk"]]]
     # ./spec/services/instructeurs_import_service_spec.rb:70:in `block (4 levels) in <main>'
2021-05-27 08:33:52 +02:00
..
controllers Fix apostrophes ‘ -> ’ 2021-05-26 18:05:14 +02:00
factories add tests for backward compatibility of geo_areas 2021-05-24 11:57:00 +02:00
features Fix apostrophes ‘ -> ’ 2021-05-26 18:05:14 +02:00
fixtures Add api address external data fetch 2021-02-17 19:10:16 +01:00
helpers Test: use APPLICATION_NAME to deal nicely with custom configuration 2021-04-13 22:46:33 +02:00
jobs Fix (API Entreprise): test fails randomly 2021-05-07 17:42:15 +02:00
lib Remove API GEO legacy adapter 2021-05-24 11:50:16 +02:00
mailers Fix apostrophes ‘ -> ’ 2021-05-26 18:05:14 +02:00
middlewares specs: always require rails_helper 2020-03-31 12:48:32 +02:00
models Fix apostrophes ‘ -> ’ 2021-05-26 18:05:14 +02:00
policies policies: fix champ policy for guest users 2020-04-02 11:27:14 +02:00
serializers Add compatibility cadsatre layer with old API GEO 2021-05-24 11:57:00 +02:00
services Fix (Instructeur): deal nicely with non-guaranteed elements order in arrays 2021-05-27 08:33:52 +02:00
support jobs: extract an RetryOnTranscientErrors concern 2021-04-29 14:08:12 +02:00
views Revert "Revert "Export de tous les dossier d'une démarche"" 2021-04-29 17:29:47 +02:00
rails_helper.rb spec: better split spec_helper and rails_helper 2021-03-04 22:59:39 +01:00
spec_helper.rb Chore(test): enable rspec only-failures support 2021-04-15 14:17:39 +02:00