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.1.3 spec/factories/library.rb
enju_event-0.0.15 spec/factories/library.rb
enju_event-0.0.14 spec/factories/library.rb
enju_event-0.0.13 spec/factories/library.rb
enju_event-0.0.12 spec/factories/library.rb
enju_inter_library_loan-0.0.2 spec/factories/library.rb
enju_event-0.0.11 spec/factories/library.rb
enju_event-0.1.2 spec/factories/library.rb
enju_event-0.0.10 spec/factories/library.rb
enju_event-0.1.1 spec/factories/library.rb
enju_event-0.1.0 spec/factories/library.rb
enju_event-0.0.9 spec/factories/library.rb
enju_event-0.0.8 spec/factories/library.rb
enju_event-0.0.7 spec/factories/library.rb
enju_inter_library_loan-0.0.1 spec/factories/library.rb
enju_event-0.0.5 spec/factories/library.rb
enju_event-0.0.4 spec/factories/library.rb
enju_event-0.0.3 spec/factories/library.rb