Sha256: 6589d1fed2c951776f4e16ac58e85481f1f387865843fc3fa9c77f75aeb62b67
Contents?: true
Size: 311 Bytes
Versions: 5
Compression:
Stored size: 311 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
5 entries across 5 versions & 1 rubygems