Sha256: 85a9e6b0f1b96db5b4b7f3d196eaf6964e7df89d7b6259e190a6161a6ceedebe

Contents?: true

Size: 223 Bytes

Versions: 19

Compression:

Stored size: 223 Bytes

Contents

FactoryBot.define do
  factory :item do |f|
    f.sequence(:item_identifier){|n| "item_#{n}"}
    f.circulation_status_id{CirculationStatus.find(1).id}
    f.manifestation_id{FactoryBot.create(:manifestation).id}
  end
end

Version data entries

19 entries across 19 versions & 4 rubygems

Version Path
enju_leaf-1.3.6 spec/factories/item.rb
enju_leaf-1.3.5 spec/factories/item.rb
enju_leaf-1.3.4 spec/factories/item.rb
enju_leaf-1.3.4.rc.2 spec/factories/item.rb
enju_leaf-1.3.4.rc.1 spec/factories/item.rb
enju_leaf-2.0.0.beta.2 spec/factories/item.rb
enju_leaf-2.0.0.beta.1 spec/factories/item.rb
enju_leaf-1.3.3.1 spec/factories/item.rb
enju_leaf-1.3.3 spec/factories/item.rb
enju_leaf-1.3.2 spec/factories/item.rb
enju_leaf-1.3.1 spec/factories/item.rb
enju_leaf-1.3.0 spec/factories/item.rb
enju_leaf-1.3.0.rc.1 spec/factories/item.rb
enju_grid-0.3.0.beta.1 spec/factories/item.rb
enju_leaf-1.3.0.beta.2 spec/factories/item.rb
enju_leaf-1.2.2 spec/factories/item.rb
enju_biblio-0.2.5 spec/factories/item.rb
enju_inter_library_loan-0.2.0 spec/factories/item.rb
enju_biblio-0.2.4 spec/factories/item.rb