From a46c261d8db649f6654307aa860aa899ed7562c4 Mon Sep 17 00:00:00 2001 From: barbara oliveira Date: Fri, 30 Aug 2024 16:00:59 +0200 Subject: [PATCH] add test for email with unvalid charact --- spec/forms/registration_form_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/forms/registration_form_spec.rb b/spec/forms/registration_form_spec.rb index af6c990..7e04b20 100644 --- a/spec/forms/registration_form_spec.rb +++ b/spec/forms/registration_form_spec.rb @@ -79,6 +79,12 @@ module Decidim let(:email) { "@example.org" } it { is_expected.to be_invalid } + + context "when email contains invalid characters" do + let(:email) { 'user"@example.org' } + + it { is_expected.to be_invalid } + end end end end