Sha256: 0e6ba612009066f5f1498c1d81ed51c50ad301bed80bbd827dfd3ed2390db770

Contents?: true

Size: 304 Bytes

Versions: 12

Compression:

Stored size: 304 Bytes

Contents

require 'factory_bot'

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-4.1.2 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-4.1.1 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-4.1.0 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-4.0.5 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-4.0.4 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-4.1.0.rc1 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-4.0.3 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-4.0.2 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-4.1.0.beta lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-4.0.1 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-4.0.0 lib/alchemy/test_support/factories/picture_factory.rb