Sha256: fb33c21c90d5081ea3d65060bf13a1c6a125beecfef152b39e036d3b0d223b1b

Contents?: true

Size: 364 Bytes

Versions: 15

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

15 entries across 15 versions & 1 rubygems

Version Path
alchemy_cms-5.0.10 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.9 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.8 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.7 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.6 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.5 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.4 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.3 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.2 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.1 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.0 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.0.rc2 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.0.rc1 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.0.beta2 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.0.0.beta1 lib/alchemy/test_support/factories/picture_factory.rb