Sha256: 503a2033bef3096c89f06be8709174c9308bd8b5d7af6db24333a4994eb9e496

Contents?: true

Size: 266 Bytes

Versions: 14

Compression:

Stored size: 266 Bytes

Contents

require 'factory_girl'

FactoryGirl.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

14 entries across 14 versions & 1 rubygems

Version Path
alchemy_cms-3.6.7 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-3.6.6 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-3.6.5 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-3.6.4 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-3.6.3 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-3.6.2 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-4.0.0.rc2 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-4.0.0.rc1 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-3.6.1 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-4.0.0.beta lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-3.6.0 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-3.5.0 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-3.5.0.rc2 lib/alchemy/test_support/factories/attachment_factory.rb
alchemy_cms-3.5.0.rc1 lib/alchemy/test_support/factories/attachment_factory.rb