Files
redux-scraper/spec/factories/blob_file.rb
2025-02-25 19:59:41 +00:00

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