Sha256: 7e1eef797749479304449dbbe7a2b5b186a3df0442696b7261f8b36f07a80cd7

Contents?: true

Size: 177 Bytes

Versions: 2

Compression:

Stored size: 177 Bytes

Contents

Fabricator :city do
  nation
  name  { sequence(:name) { |i| "#{Faker::Address.city}#{i}" }}
  geom  { [rand(30) - 50, rand(40) - 30] }
  #code { object.name[0..2].upcase }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geopolitical-0.8.1 spec/fabricators/city_fabricator.rb
geopolitical-0.8.0 spec/fabricators/city_fabricator.rb