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