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_inter_library_loan-0.0.5 spec/factories/library.rb
enju_event-0.1.11 spec/factories/library.rb
enju_event-0.0.24 spec/factories/library.rb
enju_event-0.0.23 spec/factories/library.rb
enju_event-0.1.10 spec/factories/library.rb
enju_event-0.1.9 spec/factories/library.rb
enju_event-0.0.22 spec/factories/library.rb
enju_event-0.0.21 spec/factories/library.rb
enju_event-0.1.8 spec/factories/library.rb
enju_event-0.0.20 spec/factories/library.rb
enju_event-0.1.7 spec/factories/library.rb
enju_inter_library_loan-0.0.4 spec/factories/library.rb
enju_event-0.0.19 spec/factories/library.rb
enju_event-0.1.6 spec/factories/library.rb
enju_inter_library_loan-0.0.3 spec/factories/library.rb
enju_event-0.0.18 spec/factories/library.rb
enju_event-0.0.17 spec/factories/library.rb
enju_event-0.1.5 spec/factories/library.rb
enju_event-0.0.16 spec/factories/library.rb
enju_event-0.1.4 spec/factories/library.rb