Sha256: dbbf86b4f63ff34d2be826749dfeba31c5208c8bd63ebbe0bff417fc71569a34

Contents?: true

Size: 354 Bytes

Versions: 16

Compression:

Stored size: 354 Bytes

Contents

FactoryGirl.define do

  factory :party do |p|
    p.sequence(:description){|n| "party #{n}"}
  end

  factory :individual_party, :parent => :party do |ip|
    ip.association :business_party, :factory => :individual
  end

  factory :organization_party, :parent => :party do |op|
    op.association :business_party, :factory => :organization
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
erp_base_erp_svcs-4.2.0 spec/factories/party.rb
erp_base_erp_svcs-4.0.0 spec/factories/party.rb
erp_base_erp_svcs-3.1.5 spec/factories/party.rb
erp_base_erp_svcs-3.1.4 spec/factories/party.rb
erp_base_erp_svcs-3.1.3 spec/factories/party.rb
erp_base_erp_svcs-3.1.2 spec/factories/party.rb
erp_base_erp_svcs-3.1.1 spec/factories/party.rb
erp_base_erp_svcs-3.0.7 spec/factories/party.rb
erp_base_erp_svcs-3.1.0 spec/factories/party.rb
erp_base_erp_svcs-3.0.6 spec/factories/party.rb
erp_base_erp_svcs-3.0.5 spec/factories/party.rb
erp_base_erp_svcs-3.0.4 spec/factories/party.rb
erp_base_erp_svcs-3.0.3 spec/factories/party.rb
erp_base_erp_svcs-3.0.2 spec/factories/party.rb
erp_base_erp_svcs-3.0.1 spec/factories/party.rb
erp_base_erp_svcs-3.0.0 spec/factories/party.rb