Sha256: 34b71e6b67f4dfca0a73bf3f95fbb985cca4e0d6db0ce6a12b27d82e539eeb0b

Contents?: true

Size: 320 Bytes

Versions: 30

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

30 entries across 30 versions & 1 rubygems

Version Path
alchemy_cms-5.1.10 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.0.10 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.1.9 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.0.9 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.1.8 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.0.8 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.0.7 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.1.7 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.1.6 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.0.6 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.1.5 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.0.5 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.1.4 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.0.4 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.1.3 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.2.0.b1 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.1.2 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.1.1 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.0.3 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-5.1.0 lib/alchemy/test_support/factories/attachment_factory.rb