Sha256: 2f63b1b84b6b4bff9c163ee495c073702773926b110ddabf1688e1e16712a403

Contents?: true

Size: 449 Bytes

Versions: 5

Compression:

Stored size: 449 Bytes

Contents

# coding: utf-8

require 'test_helper'

class Thinreports::Generator::PDF::TestDocument < Minitest::Test
  include Thinreports::TestHelper

  # Alias
  Document = Thinreports::Generator::PDF::Document

  def test_new_without_page_creation
    pdf = Document.new
    assert_equal pdf.internal.page_count, 0
  end

  def test_new_with_zero_margin_canvas
    pdf = Document.new
    assert_equal pdf.internal.page.margins.values, [0, 0, 0, 0]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.9.1 test/unit/generator/pdf/test_document.rb
thinreports-0.9.0 test/unit/generator/pdf/test_document.rb
thinreports-0.8.2 test/unit/generator/pdf/test_document.rb
thinreports-0.8.1 test/unit/generator/pdf/test_document.rb
thinreports-0.8.0 test/unit/generator/pdf/test_document.rb