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

Version Path
enju_biblio-0.3.2 spec/factories/agent.rb
enju_biblio-0.3.1 spec/factories/agent.rb
enju_biblio-0.3.0 spec/factories/agent.rb
enju_biblio-0.3.0.rc.1 spec/factories/agent.rb
enju_biblio-0.3.0.beta.2 spec/factories/agent.rb