Sha256: 9b03daaf1383e2255d852c334c38a9a6697b81d4942c69734349d4175b04a8ef

Contents?: true

Size: 320 Bytes

Versions: 20

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

require 'factory_bot'

FactoryBot.define do
  factory :alchemy_attachment, class: 'Alchemy::Attachment' do
    file do
      File.new(Alchemy::Engine.root.join('lib', 'alchemy', 'test_support', 'fixtures', 'image.png'))
    end
    name { 'image' }
    file_name { 'image.png' }
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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