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