Class: ODDB::OdbaExporter::TestAcOddbLine

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



274
275
276
277
278
279
280
281
282
283
284
# File 'ext/export/test/test_oddbdat.rb', line 274

def test_structure
  package = ODDB::Package.new('12')
  flexstub(package).should_receive(:oid).and_return(123)
  package.pharmacode = 223
  @acoddbline = AcOddbLine.new(package)
  expected = {
    1 => 123,
    2 => "223"
  }
  assert_equal(expected.sort, @acoddbline.structure.sort)
end