Skip to content

Commit

Permalink
[skip ci] fix landmark test
Browse files Browse the repository at this point in the history
  • Loading branch information
skoji committed Nov 6, 2018
1 parent f6e518b commit 633a28d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/example_spec.rb
Expand Up @@ -179,11 +179,14 @@
expect(tocs[1].content.strip).to eq 'Chapter 2'

# check landmarks
landmarks = xml.at_xpath("//xmlns:nav[@epub:type='landmarks']").xpath("//xmlns:ol/smlns:li")
landmarks = xml.at_xpath("//xmlns:nav[@epub:type='landmarks']").xpath("//xmlns:ol/xmlns:li/xmlns:a")
expect(landmarks.size).to eq 3
expect(landmarks[0]['@epub:type']).to eq 'cover'
expect(landmarks[0]['href']).to eq 'cover.xhtml'
expect(landmarks[1]['@epub:type']).to eq 'toc'
expect(landmarks[1]['href']).to eq '#toc'
expect(landmarks[2]['@epub:type']).to eq 'bodymatter'
expect(landmarks[2]['href']).to eq 'chapt.xhtml'
book.generate_epub(epubname)
epubcheck(epubname)
end
Expand Down

0 comments on commit 633a28d

Please sign in to comment.