Sha256: 966092e2479da005951760df4ab0d22399c5e47eae5c3ac0379006d6ca3284d7

Contents?: true

Size: 541 Bytes

Versions: 3

Compression:

Stored size: 541 Bytes

Contents

FactoryGirl.define do
  sequence :rr_code do |n|
    200 + n
  end

  factory :modality_reason, class: "Renalware::Modalities::Reason" do
    rr_code
    description "Patient / partner choice"
  end

  factory :pd_to_haemodialysis, parent: :modality_reason do
    type "Renalware::Modalities::PDToHaemodialysis"
    description "Effective after temporary HD"
  end

  factory :haemodialysis_to_pd, parent: :modality_reason do
    type "Renalware::Modalities::HaemodialysisToPD"
    description "Abdominal surgery or complications"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta9 spec/factories/modalities/modality_reasons.rb
renalware-core-2.0.0.pre.beta8 spec/factories/modalities/modality_reasons.rb
renalware-core-2.0.0.pre.beta7 spec/factories/modalities/modality_reasons.rb