Sha256: bb0939609a37e8087e76191354300d9200de22f1a8a6e9a26a51c8105032ef90

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 Bytes

Contents

# frozen_string_literal: true

require 'feature_test'

class TestListManually < FeatureTest
  feature :list_manually do
    report = Thinreports::Report.new layout: template_path
    report.list.header do |h|
      h.item(:header).value(report.page.no)
    end

    25.times do |row_index|
      if report.list.overflow?
        report.start_new_page
        report.list.header header: report.page.no
      end

      report.list.page_break if row_index == 15

      report.list.add_row detail: row_index
    end

    assert_pdf report.generate
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thinreports-0.10.3 test/features/list_manually/test_list_manually.rb