Class: ODDB::OdbaExporter::TestAcLimLine

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



140
141
142
143
144
145
146
147
148
149
150
151
152
# File 'ext/export/test/test_oddbdat.rb', line 140

def test_structure
  flexstub(Date).should_receive(:"today.strftime").and_return('20110203000000')
  @aclimline = AcLimLine.new(111, 222, 333)
  expected = {
    1=>"09", 
    2=>"20110203000000", 
    3=>111, 
    4=>333,
    5=>222, 
    6=>"4", 
  }
  assert_equal(expected.sort, @aclimline.structure.sort)
end