Sha256: ba7ce49999b0c20142491d28e248b44f164b75e5f8a0a7618ce0fb085ef6d793

Contents?: true

Size: 666 Bytes

Versions: 7

Compression:

Stored size: 666 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::RdfxmlRDFDatastream do
    describe "a new instance" do
    before(:each) do
      class MyRdfxmlDatastream < ActiveFedora::RdfxmlRDFDatastream
        register_vocabularies RDF::DC
        map_predicates do |map|
          map.publisher(:in => RDF::DC)
        end
      end
      @subject = MyRdfxmlDatastream.new(@inner_object, 'mixed_rdf')
      @subject.stub(:pid => 'test:1')
    end
    after(:each) do
      Object.send(:remove_const, :MyRdfxmlDatastream)
    end
    it "should save and reload" do
      @subject.publisher = ["St. Martin's Press"]
      @subject.serialize.should =~ /<rdf:RDF/
    end
 end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active-fedora-5.5.0.rc2 spec/unit/rdfxml_rdf_datastream_spec.rb
active-fedora-5.5.0.rc1 spec/unit/rdfxml_rdf_datastream_spec.rb
active-fedora-5.4.0 spec/unit/rdfxml_rdf_datastream_spec.rb
active-fedora-5.3.1 spec/unit/rdfxml_rdf_datastream_spec.rb
active-fedora-5.3.0 spec/unit/rdfxml_rdf_datastream_spec.rb
active-fedora-5.2.1 spec/unit/rdfxml_rdf_datastream_spec.rb
active-fedora-5.2.0 spec/unit/rdfxml_rdf_datastream_spec.rb