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

Version Path
renalware-core-2.0.17 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.16 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.15 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.14 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.13 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.12 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.11 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.9 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.8 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.7 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.5 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.4 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.3 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.2 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.1 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.0 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.0.pre.rc13 spec/factories/hd/schedule_definitions.rb