Sha256: da2eab39cee574c8877e80f06e7d91b5894807e192eb62e5c4542af254efb52e

Contents?: true

Size: 568 Bytes

Versions: 11

Compression:

Stored size: 568 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
    ActiveSupport::Deprecation.stubs(:warn)
    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

11 entries across 11 versions & 1 rubygems

Version Path
active-fedora-3.3.2 spec/integration/base_file_management_spec.rb
active-fedora-3.3.1 spec/integration/base_file_management_spec.rb
active-fedora-3.3.0 spec/integration/base_file_management_spec.rb
active-fedora-3.2.2 spec/integration/base_file_management_spec.rb
active-fedora-3.2.0 spec/integration/base_file_management_spec.rb
active-fedora-3.2.0.pre7 spec/integration/base_file_management_spec.rb
active-fedora-3.2.0.pre6 spec/integration/base_file_management_spec.rb
active-fedora-3.2.0.pre5 spec/integration/base_file_management_spec.rb
active-fedora-3.2.0.pre4 spec/integration/base_file_management_spec.rb
active-fedora-3.2.0.pre3 spec/integration/base_file_management_spec.rb
active-fedora-3.2.0.pre2 spec/integration/base_file_management_spec.rb