Sha256: 5aba3f6aa84f85d3b18c968133876b45b6cd2554081566dd838a165ab35182aa
Contents?: true
Size: 315 Bytes
Versions: 12
Compression:
Stored size: 315 Bytes
Contents
FactoryBot.define do factory :agent do |f| f.sequence(:full_name){|n| "full_name_#{n}"} f.agent_type_id{AgentType.find_by(name: 'Person').id} f.country_id{Country.first.id} f.language_id{Language.first.id} end end FactoryBot.define do factory :invalid_agent, :class => Agent do |f| end end
Version data entries
12 entries across 12 versions & 1 rubygems