Sha256: 29fa07c76585d1698e2247d2222ae065fe90ce341df52735ccfd7fca70157faa

Contents?: true

Size: 142 Bytes

Versions: 2

Compression:

Stored size: 142 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.1 spec/fabricators/nation_fabricator.rb
geopolitical-0.8.0 spec/fabricators/nation_fabricator.rb