Sha256: 7e7f002f0beef3f89f52fc33670bf2a17094f9855bd6d1e2130e3651f4a47c89

Contents?: true

Size: 331 Bytes

Versions: 27

Compression:

Stored size: 331 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

27 entries across 27 versions & 8 rubygems

Version Path
enju_purchase_request-0.3.2 spec/factories/library.rb
enju_leaf-1.3.6 spec/factories/library.rb
enju_leaf-1.3.5 spec/factories/library.rb
enju_leaf-1.3.4 spec/factories/library.rb
enju_leaf-1.3.4.rc.2 spec/factories/library.rb
enju_leaf-1.3.4.rc.1 spec/factories/library.rb
enju_leaf-1.3.3.1 spec/factories/library.rb
enju_leaf-1.3.3 spec/factories/library.rb
enju_purchase_request-0.3.1 spec/factories/library.rb
enju_leaf-1.3.2 spec/factories/library.rb
enju_leaf-1.3.1 spec/factories/library.rb
enju_leaf-1.3.0 spec/factories/library.rb
enju_leaf-1.3.0.rc.1 spec/factories/library.rb
enju_purchase_request-0.3.0.beta.1 spec/factories/library.rb
enju_leaf-1.3.0.beta.2 spec/factories/library.rb
enju_leaf-1.2.2 spec/factories/library.rb
enju_library-0.2.5 spec/factories/library.rb
enju_biblio-0.2.5 spec/factories/library.rb
enju_bookmark-0.2.2 spec/factories/library.rb
enju_purchase_request-0.2.1 spec/factories/library.rb