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

Version Path
cmor_system_backend-0.0.43.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.42.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.41.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.40.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.39.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.38.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.37.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.36.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.35.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.34.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.33.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.32.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.31.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.30.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.29.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.28.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.27.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.26.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.25.pre spec/factories/active_storage/blobs.rb
cmor_system_backend-0.0.24.pre spec/factories/active_storage/blobs.rb