Sha256: f57f5a00b53a34ba3de9fc0336096542cfb9c61f54d1ecc2c5c574995044df78

Contents?: true

Size: 327 Bytes

Versions: 15

Compression:

Stored size: 327 Bytes

Contents

# frozen_string_literal: true

require "factory_bot"
require "securerandom"

FactoryBot.define do
  factory :alchemy_picture_thumb, class: "Alchemy::PictureThumb" do
    picture { create(:alchemy_picture) }
    signature { SecureRandom.hex(16) }
    sequence(:uid) { |n| "#{Time.now.strftime("%Y/%m/%d")}/#{n}.jpg" }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
alchemy_cms-5.1.10 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.9 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.8 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.7 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.6 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.5 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.4 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.3 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.2.0.b1 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.2 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.1 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.0 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.0.rc1 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.0.beta2 lib/alchemy/test_support/factories/picture_thumb_factory.rb
alchemy_cms-5.1.0.beta1 lib/alchemy/test_support/factories/picture_thumb_factory.rb