Genshin/GAKUEngine

View on GitHub
core/lib/gaku/testing/factories/attendance_type_factory.rb

Summary

Maintainability
A
0 mins
Test Coverage
FactoryBot.define do
  factory :attendance_type, class: Gaku::AttendanceType do
    name { 'Illness' }
    color_code { 'f0f0f0' }
    counted_absent { 1 }
    disable_credit { 1 }

    factory :invalid_attendance_type do
      name { nil }
    end
  end
end