Sha256: 96b05a34bab46adfb86ad7ff114880d4d21de42f226339cb4e5dba0819890aa6
Contents?: true
Size: 742 Bytes
Versions: 1
Compression:
Stored size: 742 Bytes
Contents
# coding: utf-8 require 'test_helper' class Thinreports::Generator::PDF::TestConfiguration < Minitest::Test include Thinreports::TestHelper def setup @config = Thinreports::Generator::PDF::Configuration.new end def test_eudc_fonts_is_deprecated _out, err = capture_io do @config.eudc_fonts = [] end assert_includes err, '[DEPRECATION]' end def test_eudc_fonts_should_be_able_to_set_only_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.8.2 | test/unit/generator/pdf/test_configuration.rb |