Sha256: 543fbb7770d4e9c1fd857d1a82f07436e14bcad28faf4f404d0dc5d55df175b7

Contents?: true

Size: 551 Bytes

Versions: 58

Compression:

Stored size: 551 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, "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

58 entries across 58 versions & 1 rubygems

Version Path
active-fedora-1.2.5 spec/integration/base_file_management_spec.rb
active-fedora-1.2.4 spec/integration/base_file_management_spec.rb
active-fedora-1.2.3 spec/integration/base_file_management_spec.rb
active-fedora-1.2.2 spec/integration/base_file_management_spec.rb
active-fedora-1.2.1 spec/integration/base_file_management_spec.rb
active-fedora-1.2.0 spec/integration/base_file_management_spec.rb
active-fedora-1.1.13 spec/integration/base_file_management_spec.rb
active-fedora-1.1.11 spec/integration/base_file_management_spec.rb
active-fedora-1.1.9 spec/integration/base_file_management_spec.rb
active-fedora-1.1.8 spec/integration/base_file_management_spec.rb
active-fedora-1.1.7 spec/integration/base_file_management_spec.rb
active-fedora-1.1.6 spec/integration/base_file_management_spec.rb
active-fedora-1.1.5 spec/integration/base_file_management_spec.rb
active-fedora-1.1.4 spec/integration/base_file_management_spec.rb
active-fedora-1.1.4.pre2 spec/integration/base_file_management_spec.rb
active-fedora-1.1.2 spec/integration/base_file_management_spec.rb
active-fedora-1.1.1 spec/integration/base_file_management_spec.rb
active-fedora-1.1.0 spec/integration/base_file_management_spec.rb