Sha256: 29f7e72c7e9ad5154da2f042e0bca86fc3eff6fef8b08c97ceaf4dab1e520c32
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 Bytes
Contents
describe XMP::Document do describe '.new' do it "should convert a Nokogiri::XML::Document to an XMP::Document with the expected XML and namespaces" do xml_doc = Nokogiri::XML(File.open('spec/fixtures/xmp.xml')) xmp_doc = XMP::Document.new(xml_doc) xmp_doc.xml.should eq(xml_doc.root) xmp_doc.namespaces.should =~ %w{rdf x tiff exif xap aux Iptc4xmpCore photoshop crs dc} xmp_doc.should_not be_empty end it "should, given no args, create an empty XMP::Document" do xmp_doc = XMP::Document.new xmp_doc.xml.should be_nil xmp_doc.namespaces.should be_empty xmp_doc.should be_empty end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xmp-2.0.0 | spec/document_spec.rb |