test/unit/generator/pdf/document/test_font.rb in thinreports-0.9.1 vs test/unit/generator/pdf/document/test_font.rb in thinreports-0.10.0

- old
+ new

@@ -1,6 +1,6 @@ -# coding: utf-8 +# frozen_string_literal: true require 'test_helper' class Thinreports::Generator::PDF::TestFont < Minitest::Test include Thinreports::TestHelper @@ -24,10 +24,10 @@ Font::PRAWN_BUINTIN_FONT_ALIASES.each do |alias_font, original_font| assert_equal pdf.font_families[alias_font], pdf.font_families[original_font] end - assert_equal Font::DEFAULT_FALLBACK_FONTS, pdf.fallback_fonts[-2..-1] + assert_equal Font::DEFAULT_FALLBACK_FONTS, %w[IPAMincho] end def test_setup_fonts_with_custom_fallback_fonts Thinreports.configure do |c| c.fallback_fonts = []