Sha256: 34c7fc96ce14634a5d21d400bcf2ad7b3086870f3bb83c6e9bd44fe94d4a5312

Contents?: true

Size: 952 Bytes

Versions: 40

Compression:

Stored size: 952 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :event_type, class: "Renalware::Events::Type" do
    initialize_with { Renalware::Events::Type.find_or_create_by(name: name) }

    factory :access_clinic_event_type do
      name "Access--Clinic"
    end

    factory :swab_event_type do
      name "Swab"
      event_class_name "Renalware::Events::Swab"
      slug "swabs"
    end

    factory :biopsy_event_type do
      name "Renal biopsy"
      event_class_name "Renalware::Events::Biopsy"
    end

    factory :pd_line_change_event_type do
      name "PD Line Change"
      slug "pd_line_changes"
    end

    factory :investigation_event_type do
      name "Investigation"
      slug "investigations"
      event_class_name "Renalware::Events::Investigation"
    end

    factory :vaccination_event_type do
      name "Vaccination"
      slug "vaccinations"
      event_class_name "Renalware::Virology::Vaccination"
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
renalware-core-2.0.42 spec/factories/events/events_types.rb
renalware-core-2.0.41 spec/factories/events/events_types.rb
renalware-core-2.0.40 spec/factories/events/events_types.rb
renalware-core-2.0.39 spec/factories/events/events_types.rb
renalware-core-2.0.38 spec/factories/events/events_types.rb
renalware-core-2.0.37 spec/factories/events/events_types.rb
renalware-core-2.0.36 spec/factories/events/events_types.rb
renalware-core-2.0.35 spec/factories/events/events_types.rb
renalware-core-2.0.34 spec/factories/events/events_types.rb
renalware-core-2.0.33 spec/factories/events/events_types.rb
renalware-core-2.0.32 spec/factories/events/events_types.rb
renalware-core-2.0.31 spec/factories/events/events_types.rb
renalware-core-2.0.30 spec/factories/events/events_types.rb
renalware-core-2.0.28 spec/factories/events/events_types.rb
renalware-core-2.0.27 spec/factories/events/events_types.rb
renalware-core-2.0.26 spec/factories/events/events_types.rb
renalware-core-2.0.25 spec/factories/events/events_types.rb
renalware-core-2.0.24 spec/factories/events/events_types.rb
renalware-core-2.0.23 spec/factories/events/events_types.rb
renalware-core-2.0.22 spec/factories/events/events_types.rb