Skip to content

Instantly share code, notes, and snippets.

@Sutto
Created November 26, 2008 00:51
Show Gist options
  • Select an option

  • Save Sutto/29198 to your computer and use it in GitHub Desktop.

Select an option

Save Sutto/29198 to your computer and use it in GitHub Desktop.
# Machinist blueprints.
# tied in with forgery
require 'bcrypt'
# Finally, the blueprints
User.blueprint do
login { InternetForgery.user_name }
display_name { NameForgery.full_name }
email { InternetForgery.email_address }
password "password"
password_confirmation "password"
end
Network.blueprint do
name { NameForgery.company_name}
reference_url { "http://#{InternetForgery.domain_name}/" }
end
Server.blueprint do
network
port 6667
host { "irc.#{network.name.downcase}.com" }
end
Nick.blueprint do
network
name { InternetForgery.user_name }
end
Host.blueprint do
nick
user_string { "n=#{nick.name.downcase}" }
host_string { InternetForgery.domain_name }
end
Channel.blueprint do
name { "##{NameForgery.company_name.downcase}"}
network
description { LoremIpsumForgery.sentences(rand(4) + 1) }
end
Message.blueprint do
from { Nick.make }
owner { [Nick, Channel].random.make }
contents { LoremIpsumForgery.sentences(rand(4) + 1) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment