Sha256: 359fc93096c6950b471d4c651ea576dbac0cd2948be27aaac8c6fd7241cc2dfc

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 Bytes

Contents

# coding: utf-8

require 'test_helper'

class Thinreports::Core::Shape::Text::TestInternal < Minitest::Test
  include Thinreports::TestHelper

  Text = Thinreports::Core::Shape::Text

  def create_internal(format_config = {})
    report = Thinreports::Report.new layout: layout_file.path
    Text::Internal.new(report.start_new_page, Text::Format.new(format_config))
  end

  def test_type_of?
    assert create_internal.type_of?('text'), true
    refute create_internal.type_of?(:basic), false
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.9.1 test/unit/core/shape/text/test_internal.rb
thinreports-0.9.0 test/unit/core/shape/text/test_internal.rb