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

Version Path
renalware-core-2.1.1 spec/factories/medications/medication_route.rb
renalware-core-2.1.0 spec/factories/medications/medication_route.rb
renalware-core-2.0.167 spec/factories/medications/medication_route.rb
renalware-core-2.0.166 spec/factories/medications/medication_route.rb
renalware-core-2.0.165 spec/factories/medications/medication_route.rb
renalware-core-2.0.164 spec/factories/medications/medication_route.rb
renalware-core-2.0.163 spec/factories/medications/medication_route.rb
renalware-core-2.0.162 spec/factories/medications/medication_route.rb
renalware-core-2.0.161 spec/factories/medications/medication_route.rb
renalware-core-2.0.160 spec/factories/medications/medication_route.rb
renalware-core-2.0.159 spec/factories/medications/medication_route.rb
renalware-core-2.0.158 spec/factories/medications/medication_route.rb
renalware-core-2.0.157 spec/factories/medications/medication_route.rb
renalware-core-2.0.156 spec/factories/medications/medication_route.rb
renalware-core-2.0.155 spec/factories/medications/medication_route.rb
renalware-core-2.0.153 spec/factories/medications/medication_route.rb
renalware-core-2.0.152 spec/factories/medications/medication_route.rb
renalware-core-2.0.151 spec/factories/medications/medication_route.rb
renalware-core-2.0.149 spec/factories/medications/medication_route.rb
renalware-core-2.0.148 spec/factories/medications/medication_route.rb