Sha256: a1353d9366a842fd8151bcf8d83179dbfbf8f112302197f473d01e73e165aa2f
Contents?: true
Size: 667 Bytes
Versions: 4
Compression:
Stored size: 667 Bytes
Contents
require 'spec_helper' describe FcrepoWrapper::MD5 do let(:options) { {} } let(:config) { FcrepoWrapper::Configuration.new options } let(:md5) { described_class.new(config) } let(:file) { 'spec/fixtures/sample_config.yml' } describe "#validate!" do subject { md5.validate!(file) } context "with a checksum mismatch" do it "raises an error" do expect { subject }.to raise_error "MD5 mismatch" end end context "with a correct checksum" do let(:options) { { md5sum: 'de0b8ccf94db635e149b4c01027b34c1' } } it "doesn't raise an error" do expect { subject }.not_to raise_error end end end end
Version data entries
4 entries across 4 versions & 1 rubygems