Class: ODDB::FiParse::TestIndicationsHandler

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

Instance Method Summary collapse

Instance Method Details

#setupObject



13
14
15
# File 'ext/fiparse/test/indications_test.rb', line 13

def setup
  @writer = Indications::Handler.new
end

#test_smj_07_2007Object



16
17
18
19
20
21
# File 'ext/fiparse/test/indications_test.rb', line 16

def test_smj_07_2007
  eval(File.read(File.expand_path('data/smj_07_2007.rb',
                                  File.dirname(__FILE__))))
  assert_equal 8, @writer.flags.size
  assert_equal 140, @writer.indications.size
end