Sha256: de092da929980b13137c0e04eadd092a19ded3563d6b584383fc449a84ddff4d

Contents?: true

Size: 391 Bytes

Versions: 13

Compression:

Stored size: 391 Bytes

Contents

FactoryBot.define do
  factory :course, class: 'Sis::Core::Course' do
    code { FFaker::Name.name }
    title { FFaker::Name.name }
    description { FFaker::Lorem.paragraph }
    credit_hours { FFaker::Random.rand(1..4) }
    ects { FFaker::Random.rand(1..10) }
    lecture_hours { FFaker::Random.rand(1..4) }
    lab_hours { FFaker::Random.rand(1..4) }
    association :program
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sis_core-1.0.15 spec/factories/sis/core/courses.rb
sis_core-1.0.14 spec/factories/sis/core/courses.rb
sis_core-1.0.13 spec/factories/sis/core/courses.rb
sis_core-1.0.12 spec/factories/sis/core/courses.rb
sis_core-1.0.11 spec/factories/sis/core/courses.rb
sis_core-1.0.10 spec/factories/sis/core/courses.rb
sis_core-1.0.9 spec/factories/sis/core/courses.rb
sis_core-1.0.8 spec/factories/sis/core/courses.rb
sis_core-1.0.7 spec/factories/sis/core/courses.rb
sis_core-1.0.6 spec/factories/sis/core/courses.rb
sis_core-1.0.5 spec/factories/sis/core/courses.rb
sis_core-1.0.4 spec/factories/sis/core/courses.rb
sis_core-1.0.3 spec/factories/sis/core/courses.rb