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