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