Sha256: cb2bf4cc9a3820fc148a161f61a9ee861b24a68e5339d27dc46306a424b38bb7

Contents?: true

Size: 524 Bytes

Versions: 3

Compression:

Stored size: 524 Bytes

Contents

require '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

3 entries across 3 versions & 1 rubygems

Version Path
active-fedora-3.1.6 spec/integration/base_file_management_spec.rb
active-fedora-3.2.0.pre1 spec/integration/base_file_management_spec.rb
active-fedora-3.1.5 spec/integration/base_file_management_spec.rb