Class: ODDB::FiParse::TestFachinfoPDFWriterCetrin

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



1169
1170
1171
1172
1173
1174
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1169

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

- (Object) test_usage_certin



1175
1176
1177
1178
1179
1180
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1175

def test_usage_certin
  chapter = @fachinfo.usage
  result = chapter.sections[2].subheading
  assert_equal("Kinder von 6-12 Jahren:", result)
  assert_equal("Saisonale Rhinitis, allergische Konjunktivitis: w\344hrend maximal 4 Wochen 1-mal t\344glich 1 Filmtablette oder 2-mal t\344glich \275 Filmtablette.", chapter.sections[2].paragraphs.first.text)
end