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.39 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.38 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.37 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.36 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.35 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.34 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.33 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.32 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.31 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.30 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.28 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.27 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.26 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.25 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.24 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.23 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.22 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.21 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.20 spec/factories/hd/schedule_definitions.rb
renalware-core-2.0.18 spec/factories/hd/schedule_definitions.rb