Sha256: 0c86b196eefed65b59a8adaa3f59292e1ee2111e2d6a5fe14a6b9ff08b3a9f31
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
module Duracloud RSpec.describe BitIntegrityReport do let(:tsv) { File.read(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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
duracloud-client-0.2.0 | spec/unit/bit_integrity_report_spec.rb |
duracloud-client-0.1.5 | spec/unit/bit_integrity_report_spec.rb |
duracloud-client-0.1.4 | spec/unit/bit_integrity_report_spec.rb |