Sha256: ba8d607f1b0953cbe633d54e879471c9a9dd3a9c1304c8b21f3de27f37c4b450

Contents?: true

Size: 399 Bytes

Versions: 16

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

16 entries across 16 versions & 1 rubygems

Version Path
alchemy_cms-4.6.7 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.6.6 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.6.5 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.5.1 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.4.5 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.6.4 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.6.3 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.6.2 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.6.1 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.6.0 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.5.0 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.4.4 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.4.3 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.4.2 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.4.1 lib/alchemy/test_support/factories/essence_picture_factory.rb
alchemy_cms-4.4.0 lib/alchemy/test_support/factories/essence_picture_factory.rb