-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing the word 'error' for Lorem Ipsum generator #2663
Comments
hi @philipfong, thank you for opening this issue and for providing the details. I don't see why not just remove the Are you okay with opening a PR for that? As a bonus, I think this would be a great opportunity to reformat this file to use the dash syntax instead. |
I'm not sure if we should remove this, since the original Lorem ipsum does contain the word |
I think @psibi is right. Maybe a new option in |
I created a pull request to the repo here: #2665 I do think the new keyword is useful while keeping it optional. I've added tests as well. |
…sum words from being produced fix(faker-2663): remove pry fix(faker-2663): linting fix(faker-2663): use instance_of and self assignment fix(faker-2663): use instance_of? for Array feat(faker-2663): allow for comma delimited string to be passed
Is your feature request related to a problem? Please describe it.
On occasion, in our tests, we use lorem ipsum generation to insert text in various parts of the app. In some of these areas, we'll perform some broad/sweeping checks of some common JavaScript errors that could potentially come up (things like
NaN
for example). One of those keywords we check for iserror
.If you're adding new objects, please describe how you would use them
Removing the word 'error' from the lorem ipsum generator could avoid false negatives in testing.
Describe alternatives you've considered
We manually perform a text replacement for the word 'error' or 'Error' in order to avoid tests from failing.
Additional context
As far as test design goes, I think it is sound to perform generic text checks like the one described, especially if the app under test has experienced some of these problems with things like
NaN
ornull
orerror
appearing in app or in email communications. Overall, removing 'error' from the lorem ipsum dictionary wouldn't add much downside and likely wouldn't be missed.The text was updated successfully, but these errors were encountered: