Sha256: 83aa27478a326fd095da2e7009480c0db7215f1567f74355b47510661b4b3cbb
Contents?: true
Size: 741 Bytes
Versions: 2
Compression:
Stored size: 741 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.8.1 | test/unit/generator/pdf/test_configuration.rb |
thinreports-0.8.0 | test/unit/generator/pdf/test_configuration.rb |