Sha256: 654dac07e369284e448a763723f467b297d588ccb3cb307b5ff753d4735ecf35

Contents?: true

Size: 144 Bytes

Versions: 11

Compression:

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

11 entries across 11 versions & 1 rubygems

Version Path
geopolitical-1.0.2 spec/fabricators/nation_fabricator.rb
geopolitical-1.0.0 spec/fabricators/nation_fabricator.rb
geopolitical-0.9.9 spec/fabricators/nation_fabricator.rb
geopolitical-0.9.7 spec/fabricators/nation_fabricator.rb
geopolitical-0.9.5 spec/fabricators/nation_fabricator.rb
geopolitical-0.9.3 spec/fabricators/nation_fabricator.rb
geopolitical-0.9.1 spec/fabricators/nation_fabricator.rb
geopolitical-0.8.8 spec/fabricators/nation_fabricator.rb
geopolitical-0.8.7 spec/fabricators/nation_fabricator.rb
geopolitical-0.8.6 spec/fabricators/nation_fabricator.rb
geopolitical-0.8.4 spec/fabricators/nation_fabricator.rb