Sha256: 0c9b57f7a61a93e08e2cea772f08023b1d86905a8296a4a5382f87f2d158a4d6

Contents?: true

Size: 328 Bytes

Versions: 75

Compression:

Stored size: 328 Bytes

Contents

FactoryBot.define do
  factory :library do |f|
    f.sequence(:name){|n| "library#{n}"}
    f.sequence(:short_display_name){|n| "library_#{n}"}
    f.library_group_id{LibraryGroup.first.id}
  end
end

FactoryBot.define do
  factory :invalid_library, class: Library do |f|
    f.library_group_id{LibraryGroup.first.id}
  end
end

Version data entries

75 entries across 75 versions & 9 rubygems

Version Path
enju_biblio-0.3.18 spec/factories/library.rb
enju_biblio-0.3.17 spec/factories/library.rb
enju_biblio-0.3.16 spec/factories/library.rb
enju_biblio-0.3.15 spec/factories/library.rb
enju_library-0.3.11 spec/factories/library.rb
enju_library-0.3.10 spec/factories/library.rb
enju_biblio-0.3.14 spec/factories/library.rb
enju_message-0.3.4 spec/factories/library.rb
enju_event-0.3.5 spec/factories/library.rb
enju_bookmark-0.3.2 spec/factories/library.rb
enju_biblio-0.3.13 spec/factories/library.rb
enju_biblio-0.3.12 spec/factories/library.rb
enju_biblio-0.3.11 spec/factories/library.rb
enju_library-0.3.9 spec/factories/library.rb
enju_message-0.3.3 spec/factories/library.rb
enju_biblio-0.3.10 spec/factories/library.rb
enju_library-0.3.8 spec/factories/library.rb
enju_biblio-0.3.10.rc.3 spec/factories/library.rb
enju_biblio-0.3.10.rc.2 spec/factories/library.rb
enju_library-0.3.8.rc.2 spec/factories/library.rb