Skip to content

Commit

Permalink
add spec
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbaraOliveira13 committed Aug 30, 2024
1 parent 89383aa commit 5a038ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/forms/registration_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,11 @@ module Decidim
end
end
end

context "when email contains a script tag" do
let(:email) { "<script>alert('XSS')</script>@example.org" }

it { is_expected.to be_invalid }
end
end
end

0 comments on commit 5a038ee

Please sign in to comment.