Sha256: 8752c9dd2a1bdea5b8dce3b377ad92648255f4179cd75e880f3e21479ffe39ca
Contents?: true
Size: 676 Bytes
Versions: 13
Compression:
Stored size: 676 Bytes
Contents
# -*- encoding: utf-8 -*- require 'test_helper' require 'hexapdf/document' require 'hexapdf/type/catalog' describe HexaPDF::Type::Catalog do before do @doc = HexaPDF::Document.new @catalog = @doc.add(Type: :Catalog) end it "must always be indirect" do @catalog.must_be_indirect = false assert(@catalog.must_be_indirect?) end it "creates the page tree on access" do assert_nil(@catalog[:Pages]) pages = @catalog.pages assert_equal(:Pages, pages.type) end describe "validation" do it "creates the page tree if necessary" do refute(@catalog.validate(auto_correct: false)) assert(@catalog.validate) end end end
Version data entries
13 entries across 13 versions & 1 rubygems