Class: TestFiParse

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
ext/fiparse/test/fiparse_test.rb

Instance Method Summary collapse

Instance Method Details

#test_parse_fachinfo_docObject



11
12
13
14
15
16
17
18
# File 'ext/fiparse/test/fiparse_test.rb', line 11

def test_parse_fachinfo_doc
	filename = File.expand_path('data/doc/fi_df_t2.doc', 
		File.dirname(__FILE__))
	fis = ODDB::FiParse.parse_fachinfo_doc(File.read(filename))
	assert_equal(2, fis.size)
	assert_instance_of(ODDB::FachinfoDocument, fis.first)
	assert_instance_of(ODDB::FachinfoDocument, fis.last)
end