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_message-0.3.0 spec/factories/library.rb
enju_biblio-0.3.0 spec/factories/library.rb
enju_library-0.3.0 spec/factories/library.rb
enju_message-0.3.0.rc.1 spec/factories/library.rb
enju_event-0.3.0.rc.1 spec/factories/library.rb
enju_biblio-0.3.0.rc.1 spec/factories/library.rb
enju_library-0.3.0.rc.1 spec/factories/library.rb
enju_grid-0.3.0.beta.1 spec/factories/library.rb
enju_inter_library_loan-0.3.0.beta.1 spec/factories/library.rb
enju_news-0.3.0.beta.1 spec/factories/library.rb
enju_event-0.3.0.beta.1 spec/factories/library.rb
enju_bookmark-0.3.0.beta.1 spec/factories/library.rb
enju_message-0.3.0.beta.1 spec/factories/library.rb
enju_library-0.3.0.beta.2 spec/factories/library.rb
enju_biblio-0.3.0.beta.2 spec/factories/library.rb