Sha256: fa5f1839f9d8a3fda2b2f65b7284c331e8ac7320f823bf2228fb0f679034b5ac

Contents?: true

Size: 316 Bytes

Versions: 66

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

66 entries across 66 versions & 5 rubygems

Version Path
enju_grid-0.2.0 spec/factories/agent.rb
enju_leaf-1.2.1 spec/factories/agent.rb
enju_leaf-1.2.0 spec/factories/agent.rb
enju_leaf-1.2.0.beta.4 spec/factories/agent.rb
enju_grid-0.2.0.beta.3 spec/factories/agent.rb
enju_leaf-1.2.0.beta.3 spec/factories/agent.rb
enju_leaf-1.2.0.beta.2 spec/factories/agent.rb
enju_leaf-1.2.0.beta.1 spec/factories/agent.rb
enju_leaf-1.1.4 spec/factories/agent.rb
enju_leaf-1.1.3 spec/factories/agent.rb
enju_grid-0.1.1 spec/factories/agent.rb
enju_leaf-1.1.2 spec/factories/agent.rb
enju_leaf-1.1.1 spec/factories/agent.rb
enju_grid-0.1.0 spec/factories/agent.rb
enju_leaf-1.1.0 spec/factories/agent.rb
enju_grid-0.1.0.pre1 spec/factories/agent.rb
enju_leaf-1.1.0.rc22 spec/factories/agent.rb
enju_leaf-1.1.0.rc21 spec/factories/agent.rb
enju_leaf-1.1.0.rc20 spec/factories/agent.rb
enju_leaf-1.1.0.rc19 spec/factories/agent.rb