Class: ODDB::OdbaExporter::TestGalenicFormLine

Inherits:
Test::Unit::TestCase
  • Object
show all
Includes:
FlexMock::TestCase
Defined in:
ext/export/test/test_oddbdat.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) test_structure



463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
# File 'ext/export/test/test_oddbdat.rb', line 463

def test_structure
  galenic_form = flexmock('galenic_form') do |gal|
    gal.should_receive(:oid).and_return('oid')
    gal.should_receive(:to_s).and_return('to_s')
  end
  @galenicline = GalenicFormLine.new(galenic_form)
  expected = {
    1=>"11", 
    2=>DATE, 
    3=>"5", 
    4=>"oid",
    5=>"D", 
    6=>"4", 
    7=>"to_s", 
  }
  assert_equal(expected.sort, @galenicline.structure.sort)
end