Sha256: afcca5ba0574232722edb76844d0c37b9c273c1e922e062248e03beccaa7a46e
Contents?: true
Size: 738 Bytes
Versions: 2
Compression:
Stored size: 738 Bytes
Contents
module Duracloud RSpec.describe Manifest do let(:tsv) { File.read(File.join(File.expand_path('../../fixtures/manifest.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(space_id content_id md5)) expect(subject.csv.size).to eq(4) expect(subject.csv.to_s.split("\n").first).to eq("space_id,content_id,md5") expect(subject.rows.next).to eq({"space_id"=>"myspace", "content_id"=>"METADATA/d6/42/0c/9c/d6420c9c-82f8-4f6a-baf7-37b9be7f4c5f/20160502_172925/manifest-md5.txt", "md5"=>"21fef474787860ccfb67bdd99ddee93a"}) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
duracloud-client-0.1.3 | spec/unit/manifest_spec.rb |
duracloud-client-0.1.2 | spec/unit/manifest_spec.rb |