Skip to content

Commit

Permalink
add test for email with unvalid charact
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbaraOliveira13 committed Aug 30, 2024
1 parent 2483fff commit a46c261
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 @@ -79,6 +79,12 @@ module Decidim
let(:email) { "<script>alert('XSS')</script>@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

0 comments on commit a46c261

Please sign in to comment.