Sha256: 1be55eb349697c68132f834626d858e9a6cebf6f9fe45cdfb3fb2b762e78b6c3
Contents?: true
Size: 483 Bytes
Versions: 3
Compression:
Stored size: 483 Bytes
Contents
require_relative 'helper' require 'epub/parser/content_document' class TestParserContentDocument < Test::Unit::TestCase def setup @dir = 'test/fixtures/book' @parser = EPUB::Parser::ContentDocument.new end def test_parse_navigations doc = Nokogiri.XML open("#{@dir}/OPS/nav.xhtml") navs = @parser.parse_navigations doc assert_equal 1, navs.length assert_equal 'Table of Contents', navs.first.heading assert_equal 'toc', navs.first.type end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
epub-parser-0.1.2 | test/test_parser_content_document.rb |
epub-parser-0.1.1 | test/test_parser_content_document.rb |
epub-parser-0.1.0 | test/test_parser_content_document.rb |