Sha256: 6d554e3877c38b1638f12cf3ee9a8b71ed16c3c5fd1fc6ef6f1e9093a3c88e3f

Contents?: true

Size: 485 Bytes

Versions: 3

Compression:

Stored size: 485 Bytes

Contents

module Ddr::IngestTools

  RSpec.describe ChecksumFile do

    subject { described_class.new(checksum_filepath) }

    let(:checksum_filepath) { File.join('spec', 'fixtures', 'files', 'manifest-sha1.txt') }

    describe 'digest' do
      it 'provides the requested digest' do
        expect(subject.digest('data/abc001/abc001002.tif')).to eq('d0a2f2482783ae3c38d06f3cdeaa1a306cc043ad')
        expect(subject.digest('not/in/checksum/file.txt')).to be nil
      end
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddr-ingesttools-0.3.0 spec/unit/checksum_file_spec.rb
ddr-ingesttools-0.2.1 spec/unit/checksum_file_spec.rb
ddr-ingesttools-0.2.0 spec/unit/checksum_file_spec.rb