From 3aab0d575eedfc50195aeaa8348f51e80978640b Mon Sep 17 00:00:00 2001 From: George Byers Date: Wed, 25 Sep 2024 11:43:53 -0400 Subject: [PATCH] Comma delimited emails are still considered valid. We should investigate this --- app/spec/models/cbv_flow_invitation_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/spec/models/cbv_flow_invitation_spec.rb b/app/spec/models/cbv_flow_invitation_spec.rb index dad72553..b2900f6d 100644 --- a/app/spec/models/cbv_flow_invitation_spec.rb +++ b/app/spec/models/cbv_flow_invitation_spec.rb @@ -11,7 +11,7 @@ context "for all invitations" do context "validates email addresses" do context "when email address is valid" do - valid_email_addresses = %w[johndoe@gmail.com johndoe@example.com.au] + valid_email_addresses = %w[johndoe@gmail.com johndoe@example.com.au johndoe@example.com,johndoe@example.com.au] valid_email_addresses.each do |email| it "#{email} is valid" do invitation = CbvFlowInvitation.new(valid_attributes.merge(email_address: email))