Sha256: 31b5447b3dc74b5a08eaa146c0814fc0cbf71297d587ec96d03ebb6c567f3b05

Contents?: true

Size: 290 Bytes

Versions: 10

Compression:

Stored size: 290 Bytes

Contents

require 'factory_girl'

FactoryGirl.define do
  factory :alchemy_picture, class: 'Alchemy::Picture' do
    image_file File.new(File.expand_path('../../../../../spec/fixtures/image.png', __FILE__))
    name 'image'
    image_file_name 'image.png'
    upload_hash Time.current.hash
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alchemy_cms-3.4.2 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-3.4.1 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-3.3.3 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-3.3.2 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-3.4.0 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-3.4.0.rc1 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-3.3.1 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-3.3.0 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-3.3.0.rc2 lib/alchemy/test_support/factories/picture_factory.rb
alchemy_cms-3.3.0.rc1 lib/alchemy/test_support/factories/picture_factory.rb