Merge pull request #1920 from betagouv/frederic/fix_spurious_test

Make match order-insensitive
This commit is contained in:
gregoirenovel 2018-05-10 13:48:56 +02:00 committed by GitHub
commit 18b3548389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ RSpec.describe FindDubiousProceduresJob, type: :job do
receive_procedure, receive_forbidden_tdcs = @dubious_procedures_args[0]
expect(receive_procedure).to eq(procedure)
expect(receive_forbidden_tdcs).to match(forbidden_tdcs)
expect(receive_forbidden_tdcs).to match_array(forbidden_tdcs)
expect(AdministrationMailer).to have_received(:dubious_procedures).with(@dubious_procedures_args)
end