Sha256: ae7ae480e04086645985b253a209a1c72794b598406db589eff76da7aa32bf49

Contents?: true

Size: 399 Bytes

Versions: 30

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

require "factory_bot"
require "alchemy/test_support/factories/content_factory"
require "alchemy/test_support/factories/picture_factory"

FactoryBot.define do
  factory :alchemy_essence_picture, class: "Alchemy::EssencePicture" do
    picture factory: :alchemy_picture

    trait :with_content do
      association :content, factory: :alchemy_content
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
alchemy_cms-5.0.2 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-5.1.0.rc1 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-5.1.0.beta2 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-5.1.0.beta1 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-5.0.1 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-5.0.0 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-5.0.0.rc2 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-5.0.0.rc1 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-5.0.0.beta2 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-5.0.0.beta1 lib/alchemy/test_support/factories/essence_picture_factory.rb