Sha256: 7b0604f74df63541ad1f75835a778b7abeb571e5fbfbe8a585889f92dc9d3166

Contents?: true

Size: 470 Bytes

Versions: 1

Compression:

Stored size: 470 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_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

1 entries across 1 versions & 1 rubygems

Version Path
epub-parser-0.0.4 test/test_parser_ocf.rb