spec/rpub/epub/content_spec.rb in rpub-0.2.0 vs spec/rpub/epub/content_spec.rb in rpub-0.2.1

- old
+ new

@@ -65,10 +65,10 @@ it { should have_xpath('/xmlns:package/xmlns:manifest/xmlns:item[@id="foo.png"][@href="foo.png"][@media-type="image/png"]') } it { should have_xpath('/xmlns:package/xmlns:manifest/xmlns:item[@id="bar.gif"][@href="bar.gif"][@media-type="image/gif"]') } end context 'when the book has chapters' do - let(:chapter) { double('chapter', :filename => 'chapter.html', :id => 'chapter1') } + let(:chapter) { double('chapter', :filename => 'chapter.html', :xml_id => 'chapter1') } before { book.stub! :chapters => [chapter] } it { should have_xpath('/xmlns:package/xmlns:manifest/xmlns:item[@id="chapter1"][@href="chapter.html"][@media-type="application/xhtml+xml"]') } it { should have_xpath('/xmlns:package/xmlns:spine[@toc="ncx"]/xmlns:itemref[@idref="chapter1"]') } end end