Class: ODDB::FiParse::TestFachinfoPDFAssCardioSandoz

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



1536
1537
1538
1539
1540
1541
1542
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1536

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

- (Object) test_iksnrs



1543
1544
1545
1546
# File 'ext/fiparse/test/fachinfo_pdf_test.rb', line 1543

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