Sha256: 44aa3918b88817fbf5f2c3651483baa0bdacfc340906fed0e82f1545d05bf578

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 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

1 entries across 1 versions & 1 rubygems

Version Path
enju_leaf-1.2.2 spec/factories/agent.rb