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.18 spec/factories/agent.rb
enju_biblio-0.3.17 spec/factories/agent.rb
enju_biblio-0.3.16 spec/factories/agent.rb
enju_biblio-0.3.15 spec/factories/agent.rb
enju_biblio-0.3.14 spec/factories/agent.rb
enju_biblio-0.3.13 spec/factories/agent.rb
enju_biblio-0.3.12 spec/factories/agent.rb
enju_biblio-0.3.11 spec/factories/agent.rb
enju_biblio-0.3.10 spec/factories/agent.rb
enju_biblio-0.3.10.rc.3 spec/factories/agent.rb
enju_biblio-0.3.10.rc.2 spec/factories/agent.rb
enju_biblio-0.3.10.rc.1 spec/factories/agent.rb
enju_biblio-0.3.9 spec/factories/agent.rb
enju_biblio-0.4.0.rc.1 spec/factories/agent.rb
enju_biblio-0.3.8 spec/factories/agent.rb
enju_biblio-0.3.7 spec/factories/agent.rb
enju_biblio-0.3.6 spec/factories/agent.rb
enju_biblio-0.4.0.beta.2 spec/factories/agent.rb
enju_biblio-0.4.0.beta.1 spec/factories/agent.rb
enju_biblio-0.3.5 spec/factories/agent.rb