Sha256: 9b55c84e201c3819b0b4448bfbc6c58ceb178802197091f74398343df260d447

Contents?: true

Size: 524 Bytes

Versions: 39

Compression:

Stored size: 524 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_ingredients", factory: :alchemy_element
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
alchemy_cms-6.1.10 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.1.9 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.1.8 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.1.7 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.1.6 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.1.5 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.0.14 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.1.4 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.0.13 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.1.3 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.1.2 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.1.1 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.1.0 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.0.12 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.0.11 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.0.10 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.0.9 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.0.8 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.0.7 lib/alchemy/test_support/factories/ingredient_factory.rb
alchemy_cms-6.0.6 lib/alchemy/test_support/factories/ingredient_factory.rb