Class: ODDB::OdbaExporter::TestAcpricealgTable

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



630
631
632
633
634
635
# File 'ext/export/test/test_oddbdat.rb', line 630

def test_lines
  flexstub(AcpricealgPublicLine).should_receive(:new).and_return('acpricepublic')
  flexstub(AcpricealgExfactoryLine).should_receive(:new).and_return('acpriceexfactory')
  @acpricetable = AcpricealgTable.new 
  assert_equal(["acpricepublic", "acpriceexfactory"], @acpricetable.lines('package'))
end