Skip to content

Commit

Permalink
fix: Quote errors test to allow more errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasleger committed Dec 6, 2024
1 parent 3a36780 commit 7d73ef8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/services/quote_check_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
expect(quote_check.anonymised_text).to be_a(String)
expect(quote_check.read_attributes).to be_a(Hash)
expect(quote_check.quote_valid?).to be_in([true, false])
expect(quote_check.validation_errors).to eq(%w[
devis_manquant pro_raison_sociale_manquant
pro_forme_juridique_manquant
tva_manquant capital_manquant siret_manquant
client_prenom_manquant client_nom_manquant
])
expect(quote_check.validation_errors).to include(*%w[
devis_manquant pro_raison_sociale_manquant
pro_forme_juridique_manquant
tva_manquant capital_manquant siret_manquant
client_prenom_manquant client_nom_manquant
])

expect(quote_check.read_attributes.dig(
"pro", "siret"
Expand Down

0 comments on commit 7d73ef8

Please sign in to comment.