Sha256: 4bd7e9b9afc508766968021439259f4416f83fc8979967cae073d105e510247a

Contents?: true

Size: 583 Bytes

Versions: 57

Compression:

Stored size: 583 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :alchemy_content, class: "Alchemy::Content" do
    name { "text" }
    essence_type { "Alchemy::EssenceText" }
    association :essence, factory: :alchemy_essence_text
    association :element, factory: :alchemy_element

    trait :essence_file do
      essence_type { "Alchemy::EssenceFile" }
      association :essence, factory: :alchemy_essence_file
    end

    trait :essence_picture do
      essence_type { "Alchemy::EssencePicture" }
      association :essence, factory: :alchemy_essence_picture
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

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