Class: ODDB::OdbaExporter::TestLimitationLine

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



503
504
505
506
507
508
509
510
511
512
513
514
# File 'ext/export/test/test_oddbdat.rb', line 503

def test_structure
  flexstub(Date).should_receive(:"today.strftime").and_return('20110203000000')
  @limitationline = LimitationLine.new('lim_oid')
  expected = {
    1=>"16", 
    2=>"20110203000000", 
    3=>"lim_oid",
    5=>"4", 
    6=>"COM", 
  }
  assert_equal(expected.sort, @limitationline.structure.sort)
end