Sha256: e5e65a0b6dc9eb3679350f4483de99ed03cabc16ce91718c62ea4dbe4c374790

Contents?: true

Size: 629 Bytes

Versions: 56

Compression:

Stored size: 629 Bytes

Contents

require 'spec_helper'

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

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
active-fedora-5.7.1 spec/integration/base_file_management_spec.rb
active-fedora-5.7.0 spec/integration/base_file_management_spec.rb
active-fedora-5.6.3 spec/integration/base_file_management_spec.rb
active-fedora-5.6.2 spec/integration/base_file_management_spec.rb
active-fedora-5.6.1 spec/integration/base_file_management_spec.rb
active-fedora-5.6.0 spec/integration/base_file_management_spec.rb
active-fedora-5.5.2 spec/integration/base_file_management_spec.rb
active-fedora-5.5.1 spec/integration/base_file_management_spec.rb
active-fedora-5.5.0 spec/integration/base_file_management_spec.rb
active-fedora-5.5.0.rc2 spec/integration/base_file_management_spec.rb
active-fedora-5.5.0.rc1 spec/integration/base_file_management_spec.rb
active-fedora-5.4.0 spec/integration/base_file_management_spec.rb
active-fedora-5.3.1 spec/integration/base_file_management_spec.rb
active-fedora-5.3.0 spec/integration/base_file_management_spec.rb
active-fedora-5.2.1 spec/integration/base_file_management_spec.rb
active-fedora-5.2.0 spec/integration/base_file_management_spec.rb
active-fedora-5.1.0 spec/integration/base_file_management_spec.rb
active-fedora-5.0.0 spec/integration/base_file_management_spec.rb
active-fedora-5.0.0.rc5 spec/integration/base_file_management_spec.rb
active-fedora-5.0.0.rc4 spec/integration/base_file_management_spec.rb