Class: ODDB::OdbaExporter::TestMCMLine

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



534
535
536
537
538
539
540
541
542
543
544
545
546
547
# File 'ext/export/test/test_oddbdat.rb', line 534

def test_structure
  flexstub(Date).should_receive(:"today.strftime").and_return('20110203000000')
  @mcmline = MCMLine.new('fi_oid', 'line_nr', 'language', 'text')
  expected = {
    1=>"31",
    7=>"text",
    2=>"20110203000000",
    3=>"fi_oid",
    4=>"L",
    5=>"line_nr",
    6=>"4",
  }
  assert_equal(expected.sort, @mcmline.structure.sort)
end