Sha256: 563177718d4658b4fe3867cd4a72e2f73edd99ae3e3bf5ad2b12c5a503b2ac15

Contents?: true

Size: 512 Bytes

Versions: 57

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  %w[
    audio
    boolean
    datetime
    file
    headline
    html
    link
    node
    page
    picture
    richtext
    select
    text
  ].each do |ingredient|
    factory :"alchemy_ingredient_#{ingredient}", class: "Alchemy::Ingredients::#{ingredient.classify}" do
      role { ingredient }
      type { "Alchemy::Ingredients::#{ingredient.classify}" }
      association :element, name: "all_you_can_eat", factory: :alchemy_element
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
alchemy_cms-7.4.2 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.3.6 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.2.9 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.4.1 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.4.0 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.3.5 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.2.8 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.1.13 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.0.16 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.3.4 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.3.3 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.3.2 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.2.7 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.3.1 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.3.0 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.2.6 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.2.5 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.1.12 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.0.15 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-7.2.4 lib/alchemy/test_support/factories/ingredient_factory.rb