Sha256: e412491a248e6fb8345b5332de49896f500727a1e76d79f583835b4632c55b9a
Contents?: true
Size: 356 Bytes
Versions: 6
Compression:
Stored size: 356 Bytes
Contents
FactoryGirl.define do factory :syllabus, class: Gaku::Syllabus do name { FFaker::Name.name } code '12345' description 'Short description' credits 'Huge Credits' factory :invalid_syllabus do code nil end end trait :with_exam do after(:create) do |syllabus| syllabus.exams << create(:exam) end end end
Version data entries
6 entries across 6 versions & 1 rubygems