Sha256: 18d6a9dee74a2a1fd550a94ac4796a00477fea0101fbbc3abc38f801899551cb
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
# frozen_string_literal: true FactoryBot.define do factory :modality_description, class: "Renalware::Modalities::Description" do name { "unspecific modality description not set in factory" } initialize_with { Renalware::Modalities::Description.find_or_create_by(name: name) } trait :transfer_out do name { "Transfer Out" } code { "transfer_out" } end trait :pd do name { "PD" } type { "Renalware::PD::ModalityDescription" } code { "pd" } end trait :hd do name { "HD" } type { "Renalware::HD::ModalityDescription" } code { "hd" } end trait :transplant do name { "Transplant" } type { "Renalware::Transplants::RecipientModalityDescription" } code { "transplant" } end trait :low_clearance do name { "Advanced Kidney Care" } type { "Renalware::LowClearance::ModalityDescription" } code { "low_clearance" } end trait :death do name { "Death" } type { "Renalware::Deaths::ModalityDescription" } code { "death" } end trait :live_donor do name { "Live Donor" } type { "Renalware::Transplants::DonorModalityDescription" } code { "live_donor" } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
renalware-core-2.1.1 | spec/factories/modalities/modality_descriptions.rb |
renalware-core-2.1.0 | spec/factories/modalities/modality_descriptions.rb |