Class: ODDB::OdbaExporter::TestLimTxtLine

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



518
519
520
521
522
523
524
525
526
527
528
529
530
# File 'ext/export/test/test_oddbdat.rb', line 518

def test_structure
  flexstub(Date).should_receive(:"today.strftime").and_return('20110203000000')
  @limtxtline = LimTxtLine.new('lim_oid', 'language', 'txt')
  expected = {
    1=>"10", 
    2=>"20110203000000", 
    3=>"lim_oid", 
    4=>"language",
    5=>"4", 
    6=>"txt", 
  }
  assert_equal(expected.sort, @limtxtline.structure.sort)
end