Sha256: 4fc68c8dbc9379a0de6465973c26518de2531b2fad3dd872daa61d7b2302d029

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

require 'spec_helper'

describe "The interface to Fedora3" do

  context "with an object's datastreams" do

    subject { FedoraMigrate.source.connection.find("sufia:rb68xc089") }

    it "should load them" do
      expect(subject.datastreams.count).to eql 8 
    end

    it "should see thier names" do
      expect(subject.datastreams.keys).to include("content")
    end

    it "should return their content" do
      expect(subject.datastreams["content"].content).to_not be_nil
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fedora-migrate-0.3.0 spec/integration/fedora3_interface_spec.rb
fedora-migrate-0.2.0 spec/integration/fedora3_interface_spec.rb
fedora-migrate-0.1.0 spec/integration/fedora3_interface_spec.rb
fedora-migrate-0.0.1 spec/integration/fedora3_interface_spec.rb