Class: ODDB::FiParse::TestFachinfoPDFWriterVelcade

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



1183
1184
1185
1186
1187
1188
1189
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1183

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

- (Object) test_valid_until_velcade



1190
1191
1192
1193
1194
1195
1196
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1190

def test_valid_until_velcade
  chapter = @fachinfo.date
  assert_equal(1, chapter.sections.size, chapter)
  section = chapter.sections.first
  assert_equal(1, section.paragraphs.size, section)
  assert_equal("Juni 2004.", section.to_s)
end