Sha256: 33dafe809eb3c8fb70b9aa6259cfbfc4758d07821a3734439bffb5fb25c8c679

Contents?: true

Size: 297 Bytes

Versions: 114

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

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

114 entries across 114 versions & 1 rubygems

Version Path
alchemy_cms-7.4.2 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.3.6 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.2.9 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.4.1 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.4.0 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.3.5 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.2.8 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.1.13 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.0.16 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.3.4 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.3.3 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.3.2 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.2.7 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.3.1 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.3.0 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.2.6 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.2.5 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.1.12 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-7.0.15 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-6.1.10 lib/alchemy/test_support/factories/attachment_factory.rb