Sha256: 978e58d162c35f515cd02a86addf98614a9f7fda006aa07fd05009a8958f119e

Contents?: true

Size: 179 Bytes

Versions: 17

Compression:

Stored size: 179 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

17 entries across 17 versions & 1 rubygems

Version Path
geopolitical-3.0.0 spec/fabricators/city_fabricator.rb
geopolitical-2.0.0 spec/fabricators/city_fabricator.rb
geopolitical-1.0.5 spec/fabricators/city_fabricator.rb
geopolitical-1.0.3 spec/fabricators/city_fabricator.rb
geopolitical-1.0.2 spec/fabricators/city_fabricator.rb
geopolitical-1.0.0 spec/fabricators/city_fabricator.rb
geopolitical-0.9.9 spec/fabricators/city_fabricator.rb
geopolitical-0.9.7 spec/fabricators/city_fabricator.rb
geopolitical-0.9.5 spec/fabricators/city_fabricator.rb
geopolitical-0.9.3 spec/fabricators/city_fabricator.rb
geopolitical-0.9.1 spec/fabricators/city_fabricator.rb
geopolitical-0.8.8 spec/fabricators/city_fabricator.rb
geopolitical-0.8.7 spec/fabricators/city_fabricator.rb
geopolitical-0.8.6 spec/fabricators/city_fabricator.rb
geopolitical-0.8.4 spec/fabricators/city_fabricator.rb
geopolitical-0.8.3 spec/fabricators/city_fabricator.rb
geopolitical-0.8.2 spec/fabricators/city_fabricator.rb