[Fix #1479] Sanitize Avis email before validation
This commit is contained in:
parent
a00114d03d
commit
69f8353b2f
2 changed files with 4 additions and 8 deletions
|
@ -118,7 +118,7 @@ RSpec.describe Avis, type: :model do
|
|||
end
|
||||
end
|
||||
|
||||
describe "#clean_email" do
|
||||
describe "email sanitization" do
|
||||
subject { Avis.create(claimant: claimant, email: email, dossier: create(:dossier), gestionnaire: create(:gestionnaire)) }
|
||||
|
||||
context "when there is no email" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue