Sha256: 3ca32e2fab8f931aeb72c80f65bc2a7037344aa7f0a637c5bfab5cb0b97636d5

Contents?: true

Size: 482 Bytes

Versions: 22

Compression:

Stored size: 482 Bytes

Contents

FactoryGirl.define do
  factory :manifestation do |f|
    f.sequence(:original_title){|n| "manifestation_title_#{n}"}
    f.carrier_type_id{CarrierType.find(1).id}
  end

  factory :manifestation_serial, class: Manifestation do |f|
    f.sequence(:original_title){|n| "manifestation_title_#{n}"}
    f.carrier_type_id{CarrierType.find(1).id}
    f.language_id{Language.find(1).id}
    f.serial{true}
    f.series_statements{[FactoryGirl.create(:series_statement_serial)]}
  end
end

Version data entries

22 entries across 21 versions & 2 rubygems

Version Path
enju_biblio-0.1.0.pre65 spec/factories/manifestation.rb
enju_biblio-0.1.0.pre64 spec/factories/manifestation.rb