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

issue #1671 Add User generator which accepts arguments #2360

Closed
wants to merge 1 commit into from
Closed

issue #1671 Add User generator which accepts arguments #2360

wants to merge 1 commit into from

Conversation

lilisako
Copy link
Contributor

@lilisako lilisako commented Jul 14, 2021

Issue#

#1671

Description:

As stated in #1671, add user agent method to Faker::Internet, which returns a random hash of user information.
Also you can specify which Faker::Internet methods to include to the generated hash.

Faker::Internet.user 
#=> 
{:username=>"kiyoko", :email=>"rudy_wilkinson@stroman.io"}

Faker::Internet.user(:username, :safe_email, :password, :uuid) 
#=> 
{:username=>"dennis", 
:safe_email=>"clemente.jakubowski@example.org", 
:password=>"D6uPdDlO4cBb", 
:uuid=>"bf853523-241b-484e-8bab-c9649cc622ed"}

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant