Sha256: 3ff8cec7a14ab0e1ebd171faf1d57d0bf2f46eee436cff96a409af1fba903337

Contents?: true

Size: 333 Bytes

Versions: 298

Compression:

Stored size: 333 Bytes

Contents

FactoryGirl.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

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

Version data entries

298 entries across 294 versions & 12 rubygems

Version Path
enju_event-0.2.0 spec/factories/library.rb
enju_library-0.2.0 spec/factories/library.rb
enju_leaf-1.2.0 spec/factories/library.rb
enju_leaf-1.2.0.beta.4 spec/factories/library.rb
enju_library-0.2.0.beta.10 spec/factories/library.rb
enju_message-0.2.0.beta.5 spec/factories/library.rb
enju_event-0.2.0.beta.4 spec/factories/library.rb
enju_inter_library_loan-0.2.0.beta.2 spec/factories/library.rb
enju_news-0.2.0.beta.3 spec/factories/library.rb
enju_grid-0.2.0.beta.3 spec/factories/library.rb
enju_bookmark-0.2.0.beta.5 spec/factories/library.rb
enju_purchase_request-0.2.0.beta.2 spec/factories/library.rb
enju_news-0.2.0.beta.2 spec/factories/library.rb
enju_message-0.2.0.beta.4 spec/factories/library.rb
enju_library-0.2.0.beta.9 spec/factories/library.rb
enju_leaf-1.2.0.beta.3 spec/factories/library.rb
enju_bookmark-0.2.0.beta.3 spec/factories/library.rb
enju_library-0.2.0.beta.8 spec/factories/library.rb
enju_library-0.2.0.beta.7 spec/factories/library.rb
enju_library-0.2.0.beta.6 spec/factories/library.rb