Skip to content
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

update tests for SecureRandom.base58 method #42205

Merged
merged 1 commit into from
May 11, 2021
Merged

update tests for SecureRandom.base58 method #42205

merged 1 commit into from
May 11, 2021

Conversation

jithindasad
Copy link
Contributor

Summary

ActiveSupport's SecureRandom.base58 when generating random string ignores the following characters ["0", "O", "I", "l"]. The generated string should also fall under the following character range and number range [a-z, A-Z, 0-9] however the test suite for the method is not covering both the cases. This PR increases the test coverage with the above two cases.

@jhawthorn jhawthorn merged commit 660e996 into rails:main May 11, 2021
@jhawthorn
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants