spec/content_metadata_spec.rb in assembly-objectfile-1.6.6 vs spec/content_metadata_spec.rb in assembly-objectfile-1.6.7
- old
+ new
@@ -280,10 +280,10 @@
result.class.should be String
result.include?('<?xml').should be true
xml = Nokogiri::XML(result)
xml.errors.size.should be 0
xml.xpath("//contentMetadata")[0].attributes['type'].value.should == "book"
- xml.xpath("//contentMetadata")[0].attributes['objectId'].value.should == "#{TEST_DRUID}"
+ xml.xpath("//contentMetadata")[0].attributes['objectId'].value.should == test_druid
test_druid.should == "druid:#{TEST_DRUID}"
xml.xpath("//resource").length.should be 3
xml.xpath("//resource/file").length.should be 7
xml.xpath("//resource[@sequence='1']/file")[0].attributes['id'].value.should == "oo000oo0001_00_001.tif"