Sha256: 74ac04f4af36e756d8642e1f1f6c2af56db16382be07d75a6f12aec50e44e722

Contents?: true

Size: 564 Bytes

Versions: 10

Compression:

Stored size: 564 Bytes

Contents

require File.join( File.dirname(__FILE__), "../spec_helper" )

describe ActiveFedora::Base do
  
  before(:each) do
    @test_container = ActiveFedora::Base.new
    @test_container.add_relationship(:has_collection_member, "info:fedora/foo:2")
    @test_container.save
  end
  
  after(:each) do
    @test_container.delete
  end
  
  it "should persist and re-load collection members" do
    container_copy = ActiveFedora::Base.load_instance(@test_container.pid)
    container_copy.collection_members(:response_format=>:id_array).should == ["foo:2"]
  end
    
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
active-fedora-3.1.4 spec/integration/base_file_management_spec.rb
active-fedora-3.1.3 spec/integration/base_file_management_spec.rb
active-fedora-3.1.2 spec/integration/base_file_management_spec.rb
active-fedora-3.1.1 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.rc4 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.rc3 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.rc2 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.rc1 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre14 spec/integration/base_file_management_spec.rb