Created
November 28, 2008 04:57
-
-
Save joefiorini/29905 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InternetEnabledPersonForgery < NameForgery | |
dictionaries :top_level_domains | |
def self.last_name | |
@@current_last_name = LAST_NAMES.random | |
end | |
def self.first_name | |
@@current_first_name = [MALE_FIRST_NAMES, FEMALE_FIRST_NAMES].random.random | |
end | |
def self.user_name | |
first_name unless defined?(@@current_first_name) | |
last_name unless defined?(@@current_last_name) | |
(@@current_first_name[0,1] + @@current_last_name).downcase | |
end | |
def self.email_address | |
user_name + '@' + InternetForgery.domain_name | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment