spec/content_metadata_spec.rb in assembly-objectfile-1.7.0 vs spec/content_metadata_spec.rb in assembly-objectfile-1.7.1
- old
+ new
@@ -135,14 +135,16 @@
expect(xml.xpath("//label")[1].text).to match(/Image 2/)
expect(xml.xpath("//resource")[0].attributes['type'].value).to eq("image")
expect(xml.xpath("//resource")[1].attributes['type'].value).to eq("image")
expect(xml.xpath("//resource/file")[0].attributes['size']).to be nil
expect(xml.xpath("//resource/file")[0].attributes['mimetype']).to be nil
+ expect(xml.xpath("//resource/file")[0].attributes['role']).to be nil
expect(xml.xpath("//resource/file")[0].attributes['publish'].value).to eq("no")
expect(xml.xpath("//resource/file")[0].attributes['preserve'].value).to eq("no")
expect(xml.xpath("//resource/file")[0].attributes['shelve'].value).to eq("no")
expect(xml.xpath("//resource/file")[1].attributes['size']).to be nil
expect(xml.xpath("//resource/file")[1].attributes['mimetype']).to be nil
+ expect(xml.xpath("//resource/file")[1].attributes['role']).to be nil
expect(xml.xpath("//resource/file")[1].attributes['publish'].value).to eq("yes")
expect(xml.xpath("//resource/file")[1].attributes['preserve'].value).to eq("yes")
expect(xml.xpath("//resource/file")[1].attributes['shelve'].value).to eq("yes")
end