Sha256: e74fda68c516dde4b6c802209a61541431d2a2af4d127cc25b8042468732062c
Contents?: true
Size: 312 Bytes
Versions: 22
Compression:
Stored size: 312 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
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
enju_biblio-0.3.4 | spec/factories/agent.rb |
enju_biblio-0.3.3 | spec/factories/agent.rb |