Class: ODDB::FiParse::TestFachinfoPDFCiprofloxacinSandoz

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



1521
1522
1523
1524
1525
1526
1527
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1521

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

- (Object) test_remove_page_numbers



1528
1529
1530
1531
1532
1533
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1528

def test_remove_page_numbers
  @fachinfo.each_chapter { |chap|
    assert(!chap.match(/seite\s*\d+/mi), 
           "found page-number in:\n#{chap}")
  }
end