-
Notifications
You must be signed in to change notification settings - Fork 124
Forgery(:internet)
sheerun edited this page Aug 1, 2012
·
2 revisions
Randomly generates an username.
Forgery(:internet).user_name
# => "jalvarez"
Randomly generates a top_level_domain.
Forgery(:internet).top_level_domain
# => "edu"
Derives the list of Top Level Domains from dictionaries[:top_level_domains]
.
Randomly generates a domain_name.
Forgery(:internet).domain_name
# => "shuffledrive.edu"
Generates an e-mail address by joining a user_name and a domain_name.
Forgery(:internet).email_address
# => "[email protected]"
Creates a subject based on Forgery::LoremIpsum.title.
Forgery(:internet).email_subject
# => "Lorem Ipsum Dolor Sit Amet, Consectetuer Adipiscing Elit"
Randomly generates a Country Code Top Level Domain.
Forgery(:internet).cctld
# => "br"
Derives the list of Country Code Top Level Domains from dictionaries[:country_code_top_level_domains]
.
Randomly generates a IPv4 Number.
Forgery(:internet).ip_v4
# => "62.105.225.99"