11 lines
298 B
Ruby
11 lines
298 B
Ruby
# typed: false
|
|
FactoryBot.define do
|
|
factory :blob_file do
|
|
transient { contents { "test content #{SecureRandom.alphanumeric(10)}" } }
|
|
content_bytes { contents }
|
|
size_bytes { contents.bytesize }
|
|
content_type { "text/plain" }
|
|
sha256 { Digest::SHA256.digest(contents) }
|
|
end
|
|
end
|