Sha256: 78e375e3502d100530bce1c8b87be46d2cd9e2604aacf557b4565d865345e389

Contents?: true

Size: 909 Bytes

Versions: 8

Compression:

Stored size: 909 Bytes

Contents

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 :pd do
      name "PD"
      type "Renalware::PD::ModalityDescription"
    end

    trait :hd do
      name "HD"
      type "Renalware::HD::ModalityDescription"
    end

    trait :transplant do
      name "Transplant"
      type "Renalware::Transplants::RecipientModalityDescription"
    end

    trait :low_clearance do
      name "Low Clearance"
      type "Renalware::LowClearance::ModalityDescription"
    end

    trait :death do
      name "Death"
      type "Renalware::Deaths::ModalityDescription"
    end

    trait :live_donor do
      name "Live Donor"
      type "Renalware::Transplants::DonorModalityDescription"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 spec/factories/modalities/modality_descriptions.rb
renalware-core-2.0.0.pre.rc10 spec/factories/modalities/modality_descriptions.rb
renalware-core-2.0.0.pre.rc9 spec/factories/modalities/modality_descriptions.rb
renalware-core-2.0.0.pre.rc8 spec/factories/modalities/modality_descriptions.rb
renalware-core-2.0.0.pre.rc7 spec/factories/modalities/modality_descriptions.rb
renalware-core-2.0.0.pre.rc6 spec/factories/modalities/modality_descriptions.rb
renalware-core-2.0.0.pre.rc5 spec/factories/modalities/modality_descriptions.rb
renalware-core-2.0.0.pre.rc4 spec/factories/modalities/modality_descriptions.rb