Sha256: 9319f24afeb42c77c1dff543c3275721da1f44b7f20c0b13703b11d0913c3c64
Contents?: true
Size: 703 Bytes
Versions: 15
Compression:
Stored size: 703 Bytes
Contents
# Put, inside the load method, the necessary code to generate data with DEVELOPMENT PURPOSES. # Whenever you can, use FactoryBot's methods to keep this code "self updated". # # For Example: # # Having a country factory in /spec/factories/countries.rb # # FactoryBot.define do # factory :country do # name "Chile" # locale "es-CL" # currency "$CLP" # end # end # # Choose to do this: # # create(:country) # # Instead of this: # # Country.create(name: "Chile", locale: "es-CL", currency: "$CLP") # Faker::Config.locale = I18n.locale module FakeDataLoader extend FactoryBot::Syntax::Methods def self.load # Put here the code to generate data with DEVELOPMENT PURPOSES. end end
Version data entries
15 entries across 15 versions & 1 rubygems