Sha256: 546709d98295565fd480c9a37b7a16efc1819df55e5e53c0fb1137ba666e9e68

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :medication_route, class: "Renalware::Medications::MedicationRoute" do
    initialize_with do
      Renalware::Medications::MedicationRoute.find_or_create_by!(code: code, name: name)
    end
    code { "PO" }
    name { "Per Oral" }

    trait :other do
      code { "Other" }
      name { "Other" }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
renalware-core-2.0.109 spec/factories/medications/medication_route.rb