Sha256: 44b30001b1d118aa1f0e5c31d252b5d8dd8c5dd3c7aac704fb965efde2b9de9a
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true require 'feature_test' class TestEudc < FeatureTest feature :eudc do Thinreports.configure do |config| config.fallback_fonts = path_of('eudc.ttf') end report = Thinreports::Report.new layout: template_path report.start_new_page do |page| page.item(:eudc).value('日本で生まれ世界が育てた言語 Ruby') page.values( eudc_bold: '太字', eudc_italic: '斜体', eudc_bold_italic: '太字斜体' ) end assert_pdf report.generate end def teardown Thinreports.config.fallback_fonts = [] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.10.3 | test/features/eudc/test_eudc.rb |