spec/exifr_jpeg_spec.rb in xmp-1.0.1 vs spec/exifr_jpeg_spec.rb in xmp-2.0.0

- old
+ new

@@ -1,6 +1,5 @@ -require './spec/spec_helper.rb' require 'exifr/jpeg' describe "XMP with EXIFR::JPEG" do it "should parse image given as path" do xmp = XMP.parse('spec/fixtures/multiple-app1.jpg') @@ -17,7 +16,11 @@ it "should parse image given as EXIFR::JPEG" do img = EXIFR::JPEG.new('spec/fixtures/multiple-app1.jpg') xmp = XMP.parse(img) xmp.should be_instance_of(XMP::Document) xmp.namespaces.should =~ %w{dc iX pdf photoshop rdf tiff x xap xapRights} + end + + it "should return an empty XMP::Document for an image without XMP metadata" do + XMP.parse('spec/fixtures/no-xmp-metadata.jpg').should be_instance_of(XMP::Document) end end