From 5a038ee3de7a6de3227fd70c18e0a42ab35f5df7 Mon Sep 17 00:00:00 2001 From: barbara oliveira Date: Fri, 30 Aug 2024 15:39:19 +0200 Subject: [PATCH] add spec --- 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 b720bd7..af6c990 100644 --- a/spec/forms/registration_form_spec.rb +++ b/spec/forms/registration_form_spec.rb @@ -74,5 +74,11 @@ module Decidim end end end + + context "when email contains a script tag" do + let(:email) { "@example.org" } + + it { is_expected.to be_invalid } + end end end