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-5.3.6 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-6.0.7 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-6.0.6 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-6.0.5 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-6.0.4 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-6.0.3 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-6.0.2 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-6.0.1 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-5.3.5 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-6.0.0 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-5.3.4 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-6.0.0.pre.rc7 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-5.3.3 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-5.3.2 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-5.3.1 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-5.3.0 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-6.0.0.pre.rc6 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-5.2.7 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-5.2.6 lib/alchemy/test_support/factories/content_factory.rb
alchemy_cms-6.0.0.pre.rc5 lib/alchemy/test_support/factories/content_factory.rb