Class: ODDB::FiParse::TestFachinfoPDFWriterFursolFr

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
ext/fiparse/test/fachinfo_pdf_test.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



1261
1262
1263
1264
1265
1266
1267
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1261

def setup
  @writer = FachinfoPDFWriter.new
  path = File.expand_path('../test/data/method_calls_fursol_fr.rb',
    File.dirname(__FILE__))
  eval(File.read(path))
  @fachinfo = @writer.to_fachinfo
end

- (Object) test_no_page_numbers



1268
1269
1270
1271
1272
1273
1274
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1268

def test_no_page_numbers
  @fachinfo.each_chapter { |chapter|
    ch_str = chapter.to_s
    assert_nil(/page \d+/i.match(ch_str), ch_str)
    assert_nil(/.*compendium.*/i.match(ch_str), ch_str)
  }
end