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-3.1.0.pre13 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre12 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre11 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre10 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre9 spec/integration/base_file_management_spec.rb
active-fedora-3.0.7 spec/integration/base_file_management_spec.rb
active-fedora-3.0.6 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre8 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre7 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre6 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre5 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre4 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre3 spec/integration/base_file_management_spec.rb
active-fedora-3.0.5 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre2 spec/integration/base_file_management_spec.rb
active-fedora-3.1.0.pre1 spec/integration/base_file_management_spec.rb
active-fedora-2.3.8 spec/integration/base_file_management_spec.rb
active-fedora-3.0.4 spec/integration/base_file_management_spec.rb
active-fedora-3.0.3 spec/integration/base_file_management_spec.rb
active-fedora-3.0.1 spec/integration/base_file_management_spec.rb