Sha256: df53237a14765f3bbc439a405265ec41f1195c50829255f2175e0f655425ce79
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
module Duracloud RSpec.describe BitIntegrityReport do let(:tsv) { File.read(File.join(File.expand_path('../../fixtures/bit_integrity_report.tsv', __FILE__))) } before { allow(subject).to receive(:tsv) { tsv } } subject { described_class.new("myspace") } describe "CSV" do specify { expect(subject.csv.headers).to eq(%w(date_checked account store_id store_type space_id content_id result content_checksum provider_checksum manifest_checksum details)) expect(subject.csv.size).to eq(4) expect(subject.csv.to_s.split("\n").first).to eq("date_checked,account,store_id,store_type,space_id,content_id,result,content_checksum,provider_checksum,manifest_checksum,details") expect(subject.rows.next).to eq({"date_checked"=>"2016-05-15T04:11:14", "account"=>"example", "store_id"=>"1065", "store_type"=>"AMAZON_S3", "space_id"=>"myspace", "content_id"=>"BINARIES/00/00/e8/0000e819ac3e67d039d288adaab5b5e44c3c21d9", "result"=>"SUCCESS", "content_checksum"=>"27333f3c06a6d259863384799be68d30", "provider_checksum"=>"27333f3c06a6d259863384799be68d30", "manifest_checksum"=>"27333f3c06a6d259863384799be68d30", "details"=>"--"}) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
duracloud-client-0.1.3 | spec/unit/bit_integrity_report_spec.rb |
duracloud-client-0.1.2 | spec/unit/bit_integrity_report_spec.rb |