Sha256: 7fadce13acb5bfd7b01c77dc0461bb3b287c238be56ad1e9d47fb54f21e0f501

Contents?: true

Size: 316 Bytes

Versions: 11

Compression:

Stored size: 316 Bytes

Contents

FactoryBot.define do
  factory :agent do |f|
    f.sequence(:full_name){|n| "full_name_#{n}"}
    f.agent_type_id{AgentType.where(name: 'person').first.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

11 entries across 11 versions & 1 rubygems

Version Path
enju_event-0.3.5 spec/factories/agent.rb
enju_event-0.4.0.rc.1 spec/factories/agent.rb
enju_event-0.3.4 spec/factories/agent.rb
enju_event-0.3.3 spec/factories/agent.rb
enju_event-0.4.0.beta.2 spec/factories/agent.rb
enju_event-0.4.0.beta.1 spec/factories/agent.rb
enju_event-0.3.2 spec/factories/agent.rb
enju_event-0.3.1 spec/factories/agent.rb
enju_event-0.3.0 spec/factories/agent.rb
enju_event-0.3.0.rc.1 spec/factories/agent.rb
enju_event-0.3.0.beta.1 spec/factories/agent.rb