Class: ODDB::FiParse::TestFachinfoPDFMagnevist

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



1549
1550
1551
1552
1553
1554
1555
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1549

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

- (Object) test_iksnrs



1556
1557
1558
1559
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1556

def test_iksnrs
  assert_instance_of(FachinfoDocument2001, @fachinfo)
  assert_equal("Zulassungsnummer\n49186 (Swissmedic).", @fachinfo.iksnrs.to_s)
end