Sha256: 137194776e801879e539b467cd769e7f19dda36b1b8edf2204650e5c71f6f7f3

Contents?: true

Size: 681 Bytes

Versions: 12

Compression:

Stored size: 681 Bytes

Contents

module Duracloud
  RSpec.describe ContentManifest do

    describe "source" do
      let(:manifest) { described_class.new(space_id: 'foo', manifest_id: 'bar') }
      subject { manifest.source }
      before do
        allow(manifest).to receive(:xml) { File.read(File.expand_path("../../fixtures/content_manifest.xml", __FILE__)) }
      end
      its(:md5) { is_expected.to eq "164e9aee34c0c42915716e11d5d539b5" }
      its(:size) { is_expected.to eq 4227858432 }
      its(:content_type) { is_expected.to eq "application/octet-stream" }
      its(:content_id) { is_expected.to eq "datastreamStore/8/b/d4/info%3Afedora%2Fduke%3A447146%2Fcontent%2Fcontent.0" }
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
duracloud-client-0.10.2 spec/unit/content_manifest_spec.rb
duracloud-client-0.10.1 spec/unit/content_manifest_spec.rb
duracloud-client-0.10.0 spec/unit/content_manifest_spec.rb
duracloud-client-0.9.1 spec/unit/content_manifest_spec.rb
duracloud-client-0.9.0 spec/unit/content_manifest_spec.rb
duracloud-client-0.8.0 spec/unit/content_manifest_spec.rb
duracloud-client-0.7.2 spec/unit/content_manifest_spec.rb
duracloud-client-0.7.1 spec/unit/content_manifest_spec.rb
duracloud-client-0.7.0 spec/unit/content_manifest_spec.rb
duracloud-client-0.6.0 spec/unit/content_manifest_spec.rb
duracloud-client-0.5.0 spec/unit/content_manifest_spec.rb
duracloud-client-0.4.0 spec/unit/content_manifest_spec.rb