mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 15:02:33 -05:00
adjust error message
This commit is contained in:
1 parent
3f03d343ca
commit
babaf1aa48
2 files changed
+3
-3
No files matched your search
@@ -42,7 +42,7 @@ RSpec.describe Params::BaseValidator do
|
||||
emails.each do |email|
|
||||
expect do
|
||||
validator.email_format({ email: }, :email)
|
||||
end.to raise_error(described_class::InvalidParameterError, 'email must follow the email format')
|
||||
end.to raise_error(described_class::InvalidParameterError, "email must follow the email format: '#{email}'")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -97,7 +97,7 @@ RSpec.describe Params::BaseValidator do
|
||||
emails.each do |email|
|
||||
expect do
|
||||
validator.email_format({ email: }, :email)
|
||||
end.to raise_error(described_class::InvalidParameterError, 'email must follow the email format')
|
||||
end.to raise_error(described_class::InvalidParameterError, "email must follow the email format: '#{email}'")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user