Class: ODDB::OdbaExporter::TestAcscTable

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_lines



639
640
641
642
643
644
645
646
647
648
649
# File 'ext/export/test/test_oddbdat.rb', line 639

def test_lines
  active_agents = ['act']
  package = flexmock('package') do |pack|
    pack.should_receive(:active_agents).and_return(active_agents)
  end

  # test
  flexstub(AcscLine).should_receive(:new).with(package, 'act',  0).and_return('acscline')
  @acsctable = AcscTable.new
  assert_equal(['acscline'], @acsctable.lines(package))
end