Sha256: 30537093028d785df62b1df808b75e823a079dffdc03a0fbca7bdd59ab823812

Contents?: true

Size: 583 Bytes

Versions: 5

Compression:

Stored size: 583 Bytes

Contents

# -*- coding: utf-8 -*-
require File.expand_path 'helper', File.dirname(__FILE__)
require 'epub/parser/ocf'

class TestParserOCF < Test::Unit::TestCase
  def setup
    @parser = EPUB::Parser::OCF.new 'test/fixtures/book'
  end

  def test_parsed_container_has_one_rootfile
    assert_equal 1, @parser.parse_container.rootfiles.length
  end

  def test_parse_container_can_find_primary_rootfile
    container = @parser.parse_container

    assert_equal 'OPS/ルートファイル.opf', container.rootfile.full_path
  end

  def test_parse
    ocf = @parser.parse

    pend
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
epub-parser-0.0.8 test/test_parser_ocf.rb
epub-parser-0.0.7 test/test_parser_ocf.rb
epub-parser-0.0.6.1 test/test_parser_ocf.rb
epub-parser-0.0.6 test/test_parser_ocf.rb
epub-parser-0.0.5 test/test_parser_ocf.rb