Sha256: 1a386d2df9d659de002652fe85f060b415d97933d3f0ea7b989b2a8b14d0b93a
Contents?: true
Size: 452 Bytes
Versions: 56
Compression:
Stored size: 452 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 :po do code { "PO" } name { "Per Oral" } end trait :other do code { "Other" } name { "Other" } end end end
Version data entries
56 entries across 56 versions & 1 rubygems