Sha256: eb934bf51f2f2f6c875cdf587ee38ca185d528a11e081994cfc01c5b0ba8b663

Contents?: true

Size: 328 Bytes

Versions: 15

Compression:

Stored size: 328 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" }
    upload_hash { Time.current.hash }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
alchemy_cms-5.1.10 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.9 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.8 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.7 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.6 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.5 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.4 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.3 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.2.0.b1 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.2 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.1 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.0 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.0.rc1 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.0.beta2 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-5.1.0.beta1 lib/alchemy/test_support/factories/picture_factory.rb