Sha256: d054d0259233222f7f418d018bce08a5e153d2bcd4188a6a263e30828634d54d

Contents?: true

Size: 306 Bytes

Versions: 14

Compression:

Stored size: 306 Bytes

Contents

require 'factory_girl'

FactoryGirl.define do
  factory :alchemy_picture, class: 'Alchemy::Picture' do
    image_file File.new(Alchemy::Engine.root.join('lib', 'alchemy', 'test_support', 'fixtures', 'image.png'))
    name 'image'
    image_file_name 'image.png'
    upload_hash Time.current.hash
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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