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

- old
+ new

@@ -15,10 +15,10 @@ context 'without chapters' do it { should_not have_xpath('/xmlns:ncx/xmlns:navMap/xmlns:navPoint') } end context 'with chapters' do - let(:chapters) { [double('chapter', :title => 'chapter title', :filename => 'filename', :id => 'id')] } + let(:chapters) { [double('chapter', :title => 'chapter title', :filename => 'filename', :xml_id => 'id')] } it { should have_xpath('/xmlns:ncx/xmlns:navMap/xmlns:navPoint[@id="id"]') } it { should have_xpath('/xmlns:ncx/xmlns:navMap/xmlns:navPoint/xmlns:navLabel/xmlns:text[text()="chapter title"]') } it { should have_xpath('/xmlns:ncx/xmlns:navMap/xmlns:navPoint/xmlns:content[@src="filename"]') } end end