Sha256: dbc55c3af6bebba3b2d699f7e4ff3cfbcac9d087f22cfd3ecd0563da90be9d28

Contents?: true

Size: 321 Bytes

Versions: 15

Compression:

Stored size: 321 Bytes

Contents

FactoryGirl.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

FactoryGirl.define do
  factory :invalid_agent, :class => Agent do |f|
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
enju_event-0.2.1 spec/factories/agent.rb
enju_event-0.2.0 spec/factories/agent.rb
enju_event-0.2.0.beta.4 spec/factories/agent.rb
enju_event-0.2.0.beta.3 spec/factories/agent.rb
enju_event-0.2.0.beta.2 spec/factories/agent.rb
enju_event-0.2.0.beta.1 spec/factories/agent.rb
enju_event-0.1.19 spec/factories/agent.rb
enju_event-0.1.18 spec/factories/agent.rb
enju_event-0.1.17 spec/factories/agent.rb
enju_event-0.1.17.pre27 spec/factories/agent.rb
enju_event-0.1.17.pre26 spec/factories/agent.rb
enju_event-0.1.17.pre25 spec/factories/agent.rb
enju_event-0.1.17.pre24 spec/factories/agent.rb
enju_event-0.1.17.pre23 spec/factories/agent.rb
enju_event-0.1.17.pre22 spec/factories/agent.rb