box-o-sand/map-mash/spec/blueprints.rb
Dan Buch d834b81003 Add 'map-mash/' from commit '7f16409d1257e7471fef35c18bcdf32856b908e3'
git-subtree-dir: map-mash
git-subtree-mainline: eacc351b17
git-subtree-split: 7f16409d12
2013-01-09 23:59:47 -05:00

40 lines
432 B
Ruby

require 'machinist/active_record'
require 'sham'
require 'faker'
Sham.location do
"#{Faker::Address.city}, #{Faker::Address.uk_country}"
end
Map.blueprint do
name { Sham.location }
end
Mash.blueprint do
end
MashTournament.blueprint do
end
MashTournamentRound.blueprint do
end
Requester.blueprint do
ip do
parts = []
4.times do
parts << (rand * 100).to_i.to_s
end
parts.join('.')
end
end