Sha256: a65c21c4708e5d6cc0b55bbd06b238145e388ad8c3647c97046fd4a13f3361e9

Contents?: true

Size: 264 Bytes

Versions: 12

Compression:

Stored size: 264 Bytes

Contents

require 'factory_bot'

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

Version data entries

12 entries across 12 versions & 1 rubygems

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