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