Sha256: 5aba3f6aa84f85d3b18c968133876b45b6cd2554081566dd838a165ab35182aa

Contents?: true

Size: 315 Bytes

Versions: 12

Compression:

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

12 entries across 12 versions & 1 rubygems

Version Path
enju_leaf-1.3.6 spec/factories/agent.rb
enju_leaf-1.3.5 spec/factories/agent.rb
enju_leaf-1.3.4 spec/factories/agent.rb
enju_leaf-1.3.4.rc.2 spec/factories/agent.rb
enju_leaf-1.3.4.rc.1 spec/factories/agent.rb
enju_leaf-1.3.3.1 spec/factories/agent.rb
enju_leaf-1.3.3 spec/factories/agent.rb
enju_leaf-1.3.2 spec/factories/agent.rb
enju_leaf-1.3.1 spec/factories/agent.rb
enju_leaf-1.3.0 spec/factories/agent.rb
enju_leaf-1.3.0.rc.1 spec/factories/agent.rb
enju_leaf-1.3.0.beta.2 spec/factories/agent.rb