Sha256: a587556df7e2cdc953ebc291a2c05fee1d5def9bb1868762b23fc29ef8da8a4e

Contents?: true

Size: 291 Bytes

Versions: 40

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :drug, class: "Renalware::Drugs::Drug" do
    name "Blue Pill"

    trait :immunosuppressant do
      after(:create) do |instance|
        instance.drug_types << create(:drug_type, :immunosuppressant)
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

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