Sha256: 261a54c0244d32989d2cac4092cf59aa3ceb48bf726cbeab54e4e359879b59c8

Contents?: true

Size: 316 Bytes

Versions: 37

Compression:

Stored size: 316 Bytes

Contents

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

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

Version data entries

37 entries across 36 versions & 3 rubygems

Version Path
enju_biblio-0.2.3 spec/factories/agent.rb
enju_biblio-0.2.2 spec/factories/agent.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/factories/agent.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/factories/agent.rb
enju_biblio-0.2.1 spec/factories/agent.rb
enju_biblio-0.2.0 spec/factories/agent.rb
enju_biblio-0.2.0.beta.4 spec/factories/agent.rb
enju_biblio-0.2.0.beta.3 spec/factories/agent.rb
enju_biblio-0.2.0.beta.2 spec/factories/agent.rb
enju_flower-0.1.2 spec/factories/agent.rb
enju_biblio-0.2.0.beta.1 spec/factories/agent.rb
enju_biblio-0.1.3 spec/factories/agent.rb
enju_flower-0.1.1 spec/factories/agent.rb
enju_biblio-0.1.2 spec/factories/agent.rb
enju_flower-0.1.0 spec/factories/agent.rb
enju_biblio-0.1.1 spec/factories/agent.rb
enju_biblio-0.1.0 spec/factories/agent.rb
enju_flower-0.1.0.pre24 spec/factories/agent.rb
enju_biblio-0.1.0.pre71 spec/factories/agent.rb
enju_biblio-0.1.0.pre70 spec/factories/agent.rb