Sha256: 2a514520309fa626cb191a4e2d72dfc7bf9f32632daf2d5fc55195350562662e

Contents?: true

Size: 891 Bytes

Versions: 1

Compression:

Stored size: 891 Bytes

Contents

# frozen_string_literal: true

require 'feature_test'

class TestTextWordWrap < FeatureTest
  feature :text_word_wrap do
    report = Thinreports::Report.new layout: template_path
    report.start_new_page

    report.page.item(:locale).value('ja')

    text = 'Thinreports は Ruby 向けのオープンソース帳票・PDF ツールです。'
    report.page.values single_none: text,
                       single_break_word: text,
                       multiple_none: text,
                       multiple_break_word: text

    report.start_new_page

    report.page.item(:locale).value('en')

    text = 'Thinreports is the OSS reporting tool for Ruby-lang.'
    report.page.values single_none: text,
                       single_break_word: text,
                       multiple_none: text,
                       multiple_break_word: text

    assert_pdf report.generate
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thinreports-0.10.3 test/features/text_word_wrap/test_text_word_wrap.rb