Sha256: ee2b4665528aeae425c5de7326eaa2ec87aab9757d53c8c1be3bbc7264d6f969

Contents?: true

Size: 260 Bytes

Versions: 1

Compression:

Stored size: 260 Bytes

Contents

FactoryGirl.define do
  sequence :country_name { |n| "country_name#{n}" }
  sequence :country_code { |n| "country_code#{n}" }

  factory :country, class: 'Shopper::Country' do
    name { generate(:country_name) }
    code { generate(:country_code) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppper-0.1.0 spec/factories/countries.rb