Sha256: 59ecaf1ece9ce8a516ae29d6c32c69834b888b768bba3804451494fe47b6e2fa
Contents?: true
Size: 561 Bytes
Versions: 37
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :schedule_definition, class: "Renalware::HD::ScheduleDefinition" do initialize_with do Renalware::HD::ScheduleDefinition.find_or_create_by( diurnal_period: diurnal_period, days: days ) end trait :mon_wed_fri_am do days [1, 3, 5] association :diurnal_period, :am, factory: :hd_diurnal_period_code end trait :mon_wed_fri_pm do days [1, 3, 5] association :diurnal_period, :pm, factory: :hd_diurnal_period_code end end end
Version data entries
37 entries across 37 versions & 1 rubygems