Sha256: 46a8375db04e058321600a105d2259193d2d5aedaf1d08ce976de85544bf5ce4
Contents?: true
Size: 517 Bytes
Versions: 14
Compression:
Stored size: 517 Bytes
Contents
FactoryBot.define do factory :active_storage_blob, class: 'ActiveStorage::Blob' do filename { 'example.png' } byte_size { File.size(Cmor::System::Engine.root.join(*%w(spec files active_storage blob example.png))) } checksum { Digest::MD5.file(Cmor::System::Engine.root.join(*%w(spec files active_storage blob example.png))).base64digest } after(:build) do |resource| resource.upload(File.open(Cmor::System::Engine.root.join(*%w(spec files active_storage blob example.png)))) end end end
Version data entries
14 entries across 14 versions & 1 rubygems