Sha256: a6f435802c62671182dcbc1d025d626295bcda57722b314287db6065c0f5f6f0

Contents?: true

Size: 605 Bytes

Versions: 4

Compression:

Stored size: 605 Bytes

Contents

# coding: utf-8

require 'test/unit/helper'

class ThinReports::Generator::PDF::TestConfiguration < MiniTest::Unit::TestCase
  include ThinReports::TestHelpers
  
  def setup
    @config = ThinReports::Generator::PDF::Configuration.new
  end
  
  def test_eudc_fonts_can_only_set_font_of_TTF
    assert_raises ArgumentError do
      @config.eudc_fonts = '/path/to/eudc'
    end
    assert_raises ArgumentError do
      @config.eudc_fonts = %w( /path/to/eudc1.ttf /path/to/eudc2 )
    end
  end
  
  def test_eudc_fonts_should_return_empty_array_by_default
    assert_equal @config.eudc_fonts, []
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinreports-0.7.7 test/unit/generator/pdf/test_configuration.rb
thinreports-0.7.6 test/unit/generator/pdf/test_configuration.rb
thinreports-0.7.5 test/unit/generator/pdf/test_configuration.rb
thinreports-0.7.0 test/unit/generator/pdf/test_configuration.rb