Skip to content

Instantly share code, notes, and snippets.

@joefiorini
Created November 28, 2008 04:57
Show Gist options
  • Save joefiorini/29905 to your computer and use it in GitHub Desktop.
Save joefiorini/29905 to your computer and use it in GitHub Desktop.
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