Sha256: 323f5b767df94419613fd669c19bd21adba6edba06abc3b8662c0d10327d7c16

Contents?: true

Size: 1.01 KB

Versions: 49

Compression:

Stored size: 1.01 KB

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" }
      hidden { false }
    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

49 entries across 49 versions & 1 rubygems

Version Path
renalware-core-2.0.149 spec/factories/events/events_types.rb
renalware-core-2.0.148 spec/factories/events/events_types.rb
renalware-core-2.0.147 spec/factories/events/events_types.rb
renalware-core-2.0.146 spec/factories/events/events_types.rb
renalware-core-2.0.145 spec/factories/events/events_types.rb
renalware-core-2.0.144 spec/factories/events/events_types.rb
renalware-core-2.0.143 spec/factories/events/events_types.rb
renalware-core-2.0.142 spec/factories/events/events_types.rb
renalware-core-2.0.141 spec/factories/events/events_types.rb
renalware-core-2.0.140 spec/factories/events/events_types.rb
renalware-core-2.0.139 spec/factories/events/events_types.rb
renalware-core-2.0.138 spec/factories/events/events_types.rb
renalware-core-2.0.137 spec/factories/events/events_types.rb
renalware-core-2.0.136 spec/factories/events/events_types.rb
renalware-core-2.0.135 spec/factories/events/events_types.rb
renalware-core-2.0.134 spec/factories/events/events_types.rb
renalware-core-2.0.133 spec/factories/events/events_types.rb
renalware-core-2.0.132 spec/factories/events/events_types.rb
renalware-core-2.0.131 spec/factories/events/events_types.rb
renalware-core-2.0.130 spec/factories/events/events_types.rb