spec/rpub/epub/content_spec.rb in rpub-0.3.0 vs spec/rpub/epub/content_spec.rb in rpub-0.4.0
- old
+ new
@@ -56,9 +56,10 @@
end
context 'when the book has a ToC' do
before { book.stub! :has_toc? => true }
it { should have_xpath('/xmlns:package/xmlns:manifest/xmlns:item[@id="toc"][@href="toc.html"][@media-type="application/xhtml+xml"]') }
+ it { should have_xpath('/xmlns:package/xmlns:guide/xmlns:reference[@type="toc"][@title="Table of Contents"][@href="toc.html"]') }
end
context 'when the book has images' do
before { book.stub! :images => ['foo.png', 'bar.gif'] }
it { should have_xpath('/xmlns:package/xmlns:manifest/xmlns:item[@id="foo.png"][@href="foo.png"][@media-type="image/png"]') }