Sha256: 4b35b6274f43c18b5dbf809cafc30f902092f344ad47df74a687630bdc3727e4

Contents?: true

Size: 143 Bytes

Versions: 2

Compression:

Stored size: 143 Bytes

Contents

Fabricator :nation do
  name { sequence {  |i| Faker::Address.country } }
  abbr { |c| c[:name].first.upcase + ('A'..'Z').to_a[rand(23)] }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geopolitical-0.8.3 spec/fabricators/nation_fabricator.rb
geopolitical-0.8.2 spec/fabricators/nation_fabricator.rb