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

Version Path
cmor_system-0.0.60.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.59.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.58.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.57.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.56.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.55.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.54.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.53.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.51.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.50.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.49.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.48.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.45.pre spec/factories/active_storage/blobs.rb
cmor_system-0.0.44.pre spec/factories/active_storage/blobs.rb