Sha256: 050adfb75fa2eac351bbf688cea9a7735f888f04817e0fa58e583a65bc3cb76a

Contents?: true

Size: 364 Bytes

Versions: 20

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

require 'factory_bot'

FactoryBot.define do
  factory :alchemy_picture, class: 'Alchemy::Picture' do
    image_file do
      File.new(Alchemy::Engine.root.join('lib', 'alchemy', 'test_support', 'fixtures', 'image.png'))
    end
    name { 'image' }
    image_file_name { 'image.png' }
    upload_hash { Time.current.hash }
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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