Sha256: c1ca1145818f46bdc2515a82b028f41d72bbd5589ddee3bc1384d8f16f2ce7e1

Contents?: true

Size: 434 Bytes

Versions: 3

Compression:

Stored size: 434 Bytes

Contents

FactoryBot.define do
  factory :library do |f|
    f.sequence(:name){|n| "library#{n}"}
    f.sequence(:short_display_name){|n| "library_#{n}"}
    f.sequence(:display_name_en){|n| "library_#{n}"}
    f.sequence(:display_name_ja){|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

3 entries across 3 versions & 1 rubygems

Version Path
enju_event-0.4.0.rc.1 spec/factories/library.rb
enju_event-0.4.0.beta.2 spec/factories/library.rb
enju_event-0.4.0.beta.1 spec/factories/library.rb